]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
getpid returns a pid_t. we all know that's an int. but solaris doesn't know.
authorRoger Dingledine <arma@torproject.org>
Fri, 19 Mar 2004 21:34:04 +0000 (21:34 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 19 Mar 2004 21:34:04 +0000 (21:34 +0000)
svn:r1305

src/common/util.c

index 77e7916d867e48e641378b92c674b344e740dcc7..b95b23d8f231d553ad7a8b6c4ffeeca77e3a4a1d 100644 (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