Result of 'calloc' is converted to a pointer of type 'unsigned long',
which is incompatible with sizeof operand type 'long'

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 tools/xsetwacom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 26b3513..122f115 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -1325,7 +1325,7 @@ static void special_map_property(Display *dpy, XDevice 
*dev, Atom btnact_prop, i
        unsigned long btnact_nitems, bytes_after;
        unsigned long nitems = 0;
 
-       data = calloc(256, sizeof(long));
+       data = calloc(256, sizeof(unsigned long));
        if (!parse_actions(dpy, argc, argv, data, &nitems, 256))
                goto out;
 
-- 
2.1.0


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to