[or-cvs] getpid returns a pid_t. we all know that"s an int. but sola...
Roger Dingledine
arma at seul.org
Fri Mar 19 21:34:07 UTC 2004
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
More information about the tor-commits
mailing list