From fd680f025b1db22b1069aed2f142f670181574e5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 5 May 2011 09:20:23 +1000 Subject: 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 --- src/XListDProp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3