[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master cfadba6f23 1/3: Pacify gcc -std=c99
From: |
Paul Eggert |
Subject: |
master cfadba6f23 1/3: Pacify gcc -std=c99 |
Date: |
Tue, 19 Apr 2022 22:19:43 -0400 (EDT) |
branch: master
commit cfadba6f2391424431e0f2e08ec9f97336231564
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Pacify gcc -std=c99
* 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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sysdep.c b/src/sysdep.c
index 36636d0ed5..9c1e59c02b 100644
--- 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 %Lu %lu %ld"),
+ "%llu %llu %llu %llu %ld %ld %d %*d %llu %lu
%ld"),
&c, &ppid, &pgrp, &sess, &tty, &tpgid,
&minflt, &cminflt, &majflt, &cmajflt,
&u_time, &s_time, &cutime, &cstime,