From df3f37b84f81ec7757e056ff82530ef6e863fb95 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 19 Mar 2004 21:34:04 +0000 Subject: getpid returns a pid_t. we all know that's an int. but solaris doesn't know. svn:r1305 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf