HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e7ed09
)
(lock_info_type): Declare pid as unsigned long instead of int.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 2 Jan 1997 21:02:23 +0000
(21:02 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 2 Jan 1997 21:02:23 +0000
(21:02 +0000)
(lock_file_1): Use %lu instead of %d in printf.
src/filelock.c
patch
|
blob
|
blame
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index
d30571a
..
25ab59e
100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-86,7
+86,7
@@
typedef struct
{
char *user;
char *host;
-
int
pid;
+
unsigned long
pid;
} lock_info_type;
/* When we read the info back, we might need this much more. */
@@
-136,7
+136,8
@@
lock_file_1 (lfname, force)
char *host_name = XSTRING (Fsystem_name ())->data;
char *lock_info_str = alloca (strlen (user_name) + strlen (host_name) + 21);
- sprintf (lock_info_str, "%s@%s.%d", user_name, host_name, getpid ());
+ sprintf (lock_info_str, "%s@%s.%lu", user_name, host_name,
+ (unsigned long) getpid ());
err = symlink (lock_info_str, lfname);
if (errno == EEXIST && force)