projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f165887
)
Pacify gcc -std=c99
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 20 Apr 2022 02:00:22 +0000
(19:00 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 20 Apr 2022 02:19:35 +0000
(19:19 -0700)
* src/sysdep.c (system_process_attributes): Use %llu instead of
%Lu for sscanf, as %llu is standard and %Lu is not, and the latter
can provoke warnings if gcc is used pedantically.
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index 36636d0ed50b1d2e6f452bf80ac420e5592eb23d..9c1e59c02be0f0e5e77c54313f29a226e85145ab 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-3420,7
+3420,7
@@
system_process_attributes (Lisp_Object pid)
utime stime cutime cstime priority nice thcount . start vsize rss */
if (q
&& (sscanf (q + 2, ("%c %d %d %d %d %d %*u %lu %lu %lu %lu "
- "%
Lu %Lu %Lu %Lu %ld %ld %d %*d %L
u %lu %ld"),
+ "%
llu %llu %llu %llu %ld %ld %d %*d %ll
u %lu %ld"),
&c, &ppid, &pgrp, &sess, &tty, &tpgid,
&minflt, &cminflt, &majflt, &cmajflt,
&u_time, &s_time, &cutime, &cstime,