summaryrefslogtreecommitdiff
path: root/sysdeps/linux
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@gmail.com>2014-12-29 22:30:20 +0100
committerBenoît Dejean <bdejean@gmail.com>2015-07-10 20:36:12 +0200
commit4c4466292e7b0c86e8052634477abf4ac6330df1 (patch)
tree4fa0ee28826854af7cade66986a0ee5e26574520 /sysdeps/linux
parentfcc1d9d957ef87eafa245352db3a55d9053ac521 (diff)
downloadlibgtop-4c4466292e7b0c86e8052634477abf4ac6330df1.tar.gz
Fixed sscanf format string as arguments are unsigned ints.
Diffstat (limited to 'sysdeps/linux')
-rw-r--r--sysdeps/linux/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/linux/open.c b/sysdeps/linux/open.c
index bbbf0df2..d5e5c684 100644
--- a/sysdeps/linux/open.c
+++ b/sysdeps/linux/open.c
@@ -42,7 +42,7 @@ static void set_linux_version(glibtop *server)
if (uname(&uts) == -1) /* failure most likely implies impending death */
glibtop_error_r(server, "uname() failed");
- version_string_depth = sscanf(uts.release, "%d.%d.%d", &x, &y, &z);
+ version_string_depth = sscanf(uts.release, "%u.%u.%u", &x, &y, &z);
if ((version_string_depth < 2) || /* Non-standard for all known kernels */
((version_string_depth < 3) && (x < 3))) /* Non-standard for 2.x.x kernels */