From: Paul Eggert Date: Wed, 20 Apr 2022 02:00:22 +0000 (-0700) Subject: Pacify gcc -std=c99 X-Git-Tag: emacs-29.0.90~1931^2~398 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfadba6f2391424431e0f2e08ec9f97336231564;p=emacs.git 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. --- diff --git a/src/sysdep.c b/src/sysdep.c index 36636d0ed50..9c1e59c02be 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,