diff options
author | Eduard Hasenleithner <eduard@hasenleithner.at> | 2011-10-09 15:01:43 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-10 14:14:09 +1000 |
commit | 705c6df5a75e3408b048d15cadd1652124767893 (patch) | |
tree | 46cddb721c114393c07be16c599a490a94eb1035 /tools | |
parent | c0504a80c5b94323072326e0b1d78ed2378817e7 (diff) |
Fixing format strings in list_mod
Two printf calls in xsetwacom.c were using a "%d" for output of an
expression of type size_t. Changing format string to use correct
"%zd" in order to avoid the format string warning at compile time:
xsetwacom.c:787:2: warning: format '%d' expects argument of type 'int',
but argument 2 has type 'long unsigned int' [-Wformat]
Signed-off-by: Eduard Hasenleithner <eduard@hasenleithner.at>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/xsetwacom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 2dc0c2b..99ca974 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -784,11 +784,11 @@ static void list_mod(Display *dpy) { struct modifier *m = modifiers; - printf("%d modifiers are supported:\n", ARRAY_SIZE(modifiers) - 1); + printf("%zd modifiers are supported:\n", ARRAY_SIZE(modifiers) - 1); while(m->name) printf(" %s\n", m++->name); - printf("\n%d specialkeys are supported:\n", ARRAY_SIZE(specialkeys) - 1); + printf("\n%zd specialkeys are supported:\n", ARRAY_SIZE(specialkeys) - 1); m = specialkeys; while(m->name) printf(" %s\n", m++->name); |