]> granicus.if.org Git - procps-ng/commit
Replace %Lu with standard %llu
authorCraig Small <csmall@enc.com.au>
Thu, 3 Mar 2016 10:43:52 +0000 (21:43 +1100)
committerCraig Small <csmall@enc.com.au>
Thu, 3 Mar 2016 10:43:52 +0000 (21:43 +1100)
commitda715e3ca0dca0188d0b16277768d4efd9ea1bd7
treee50b2b465046b3800742d41dd83bc69b18ed4e25
parent666b2946b27817b05a150809c6dac60e9fe8130b
Replace %Lu with standard %llu

Multiple scanf()s use the GNU-permitted %Lu. This is not supported in
other libraries and isn't to the POSIX specification. The L modifier
is only used for floats in POSIX.

Replacing %Lu with %llu is the same for GNU libc (scanf(3) says as much)
but means other libraries will work fine.

Closes: #19
References:
 http://pubs.opengroup.org/onlinepubs/009695399/functions/fscanf.html
proc/readproc.c
proc/sysinfo.c
top/top.c