diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-19 21:34:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-19 21:34:04 +0000 |
commit | df3f37b84f81ec7757e056ff82530ef6e863fb95 (patch) | |
tree | b2bd418e2232c273c4f2eca74faa98e1d342dbe9 | |
parent | 4d3731148159605413dcf8ada463ce28326bdf0d (diff) | |
download | tor-df3f37b84f81ec7757e056ff82530ef6e863fb95.tar.gz tor-df3f37b84f81ec7757e056ff82530ef6e863fb95.zip |
getpid returns a pid_t. we all know that's an int. but solaris doesn't know.
svn:r1305
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 77e7916d86..b95b23d8f2 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -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 |