summaryrefslogtreecommitdiff
path: root/src/XListDProp.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-05 09:20:23 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-19 13:02:12 +1000
commitfd680f025b1db22b1069aed2f142f670181574e5 (patch)
treef7bf1fce0e500f912d2d8a3d96ea96a9a0d7b2b1 /src/XListDProp.c
parentaa2432240ad02c54280f2d11c007969c3eb9b79f (diff)
Silence compiler warning in XListDProp.c
XListDProp.c: In function 'XListDeviceProperties': XListDProp.c:72:9: warning: pointer targets in passing argument 2 of '_XRead32' differ in signedness /usr/include/X11/Xlibint.h:652:13: note: expected 'long int *' but argument is of type 'Atom *' Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XListDProp.c')
-rw-r--r--src/XListDProp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XListDProp.c b/src/XListDProp.c
index 66b9eca..8667350 100644
--- a/src/XListDProp.c
+++ b/src/XListDProp.c
@@ -69,7 +69,7 @@ XListDeviceProperties(Display* dpy, XDevice* dev, int *nprops_return)
goto cleanup;
}
- _XRead32(dpy, props, rep.nAtoms << 2);
+ _XRead32(dpy, (long*)props, rep.nAtoms << 2);
}
*nprops_return = rep.nAtoms;