Browse Source

Print the result of, and not the address of, getpid().

master
Richard Nyberg 16 years ago
parent
commit
33f309c204
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      btpd/main.c

+ 1
- 1
btpd/main.c View File

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


Loading…
Cancel
Save