]> granicus.if.org Git - shadow/commitdiff
* lib/commonio.c: Display PID as unsigned long.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 30 Jul 2011 01:48:42 +0000 (01:48 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 30 Jul 2011 01:48:42 +0000 (01:48 +0000)
ChangeLog
lib/commonio.c

index 1f10534e517fec2354b595066a127a7a1d54c880..58a9382ac8b5430856ed4d75e0db09d14a72803f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 603ac3c75eebe64d994357315b891f202c4ff3e6..33b92f350528763ce01fcbf8d83118dc93ea745c 100644 (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;