about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-01-24 00:53:26 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-01-26 18:41:52 +0100
commit33f309c2047d5b23a2e013d2a52238dc5e7b55b7 (patch)
tree3269b4aa6734f59598e466dcb08e8c5770f6895b
parent7ba163fe5ac63413717ea368b698ac4adea18e73 (diff)
downloadbtpd-33f309c2047d5b23a2e013d2a52238dc5e7b55b7.tar.gz
btpd-33f309c2047d5b23a2e013d2a52238dc5e7b55b7.zip
Print the result of, and not the address of, getpid().
-rw-r--r--btpd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btpd/main.c b/btpd/main.c
index 60575f1..efa0e5d 100644
--- a/btpd/main.c
+++ b/btpd/main.c
@@ -19,7 +19,7 @@ writepid(int pidfd)
 {
     int nw;
     char pidtxt[100];
-    nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid);
+    nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid());
     ftruncate(pidfd, 0);
     write(pidfd, pidtxt, nw);
 }