* lib/commonio.c: Display PID as unsigned long.

This commit is contained in:
nekral-guest 2011-07-30 01:48:42 +00:00
parent 905e14ee83
commit 1f4f00acad
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Display PID as unsigned long.
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Remove unused Zflg.

View File

@ -216,8 +216,8 @@ static int do_lock_file (const char *file, const char *lock, bool log)
if (kill (pid, 0) == 0) {
if (log) {
(void) fprintf (stderr,
"%s: lock %s already used by PID %d\n",
Prog, lock, pid);
"%s: lock %s already used by PID %lu\n",
Prog, lock, (unsigned long) pid);
}
unlink (file);
errno = EEXIST;