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); }