[PATCH libXi 2/3] Silence compiler warning in XListDProp.c

Peter Hutterer peter.hutterer at who-t.net
Thu May 5 17:46:02 PDT 2011


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 at who-t.net>
---
 src/XListDProp.c |    2 +-
 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;
-- 
1.7.4.4



More information about the xorg-devel mailing list