getpid returns a pid_t. we all know that's an int. but solaris doesn't know.

svn:r1305
This commit is contained in:
Roger Dingledine
2004-03-19 21:34:04 +00:00
parent d95e0e9ba3
commit 8acfdef78b
+1 -1
View File
@@ -837,7 +837,7 @@ void write_pidfile(char *filename) {
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