about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
 }