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@xxxxxx> --- misc-utils/lslocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index abc6a16..d351d7c 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); -- 2.2.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html