about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-01-11 23:23:11 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-01-12 23:43:35 +0100
commit8a150a2fb34cbe8b5371380dfc270da2d8d885a4 (patch)
tree466b43ef69a57fac291d1a0db93e55103100a942
parentdf5fc31ea8e36edbd45fb514bb52681ec8cdb616 (diff)
downloadbtpd-8a150a2fb34cbe8b5371380dfc270da2d8d885a4.tar.gz
btpd-8a150a2fb34cbe8b5371380dfc270da2d8d885a4.zip
pid_t is long on some systems. solaris is one.
-rw-r--r--btpd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btpd/main.c b/btpd/main.c
index 247e0f7..c43c223 100644
--- a/btpd/main.c
+++ b/btpd/main.c
@@ -9,7 +9,7 @@ static void
 writepid(int pidfd)
 {
     FILE *fp = fdopen(dup(pidfd), "w");
-    fprintf(fp, "%d", getpid());
+    fprintf(fp, "%ld", (long)getpid());
     fclose(fp);
 }