[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] getpid returns a pid_t. we all know that"s an int. but sola...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] getpid returns a pid_t. we all know that"s an int. but sola...
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 19 Mar 2004 16:34:07 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 19 Mar 2004 16:34:24 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
util.c
Log Message:
getpid returns a pid_t. we all know that's an int. but solaris doesn't know.
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- util.c 19 Mar 2004 20:50:10 -0000 1.64
+++ util.c 19 Mar 2004 21:34:04 -0000 1.65
@@ -837,7 +837,7 @@
log_fn(LOG_WARN, "unable to open %s for writing: %s", filename,
strerror(errno));
} else {
- fprintf(pidfile, "%d", getpid());
+ fprintf(pidfile, "%d", (int)getpid());
fclose(pidfile);
}
#endif