summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-13 15:27:49 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-13 15:27:49 +0000
commit82a8a8feb33df6433478e5fb603461a1bf94b0a0 (patch)
tree65e98f68376465b2caece88cf87f60ce9b96c2b0 /src
parent808b5935c8801c180feeabe86c6ae2c2b37aaf3f (diff)
downloademacs-82a8a8feb33df6433478e5fb603461a1bf94b0a0.tar.gz
(lock_file): Use %lu instead of %d in sprintf because
the variable named pid is unsigned long.
Diffstat (limited to 'src')
-rw-r--r--src/filelock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index c478233d7e1..55be9fb8628 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -347,7 +347,7 @@ lock_file (fn)
/* Else consider breaking the lock */
locker = (char *) alloca (strlen (lock_info.user) + strlen (lock_info.host)
+ LOCK_PID_MAX + 9);
- sprintf (locker, "%s@%s (pid %d)", lock_info.user, lock_info.host,
+ sprintf (locker, "%s@%s (pid %lu)", lock_info.user, lock_info.host,
lock_info.pid);
FREE_LOCK_INFO (lock_info);