diff options
author | Sami Kerola | 2015-01-03 10:20:04 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-07 10:14:11 +0100 |
commit | 64a265bf8a472a8f42f3da3de168e6b8224847b2 (patch) | |
tree | 63df11657f67f7e0043fc7c57af71c751aaf17ea /misc-utils/lslocks.c | |
parent | maint: fix shadow declaration (diff) | |
download | kernel-qcow2-util-linux-64a265bf8a472a8f42f3da3de168e6b8224847b2.tar.gz kernel-qcow2-util-linux-64a265bf8a472a8f42f3da3de168e6b8224847b2.tar.xz kernel-qcow2-util-linux-64a265bf8a472a8f42f3da3de168e6b8224847b2.zip |
lslocks: fix type warning
misc-utils/lslocks.c:229:2: warning: format '%x' expects argument of type
'unsigned int *', but argument 3 has type 'int *' [-Wformat=]
Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/locks.c?id=5e0f872c7d7e371fbdf09e864eddd24bddfda8fe#n2533
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/lslocks.c')
-rw-r--r-- | misc-utils/lslocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index 6dac1879f..9072d6027 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -223,7 +223,7 @@ out: */ static ino_t get_dev_inode(char *str, dev_t *dev) { - int maj = 0, min = 0; + unsigned int maj = 0, min = 0; ino_t inum = 0; sscanf(str, "%02x:%02x:%ju", &maj, &min, &inum); |