[PATCH] Xi: change XIChangeDeviceProperty from const pointer to const void *

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 5 16:15:46 PST 2012


According to Daniel Kurtz, a typedev void *pointer is a atomic type. So a
const pointer is equivalent to 'void const *' instead of the intended
'const void *'.

This technically changes the ABI, but we don't bump it for this.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 Xi/xiproperty.c    |    2 +-
 include/exevents.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c
index 88de119..c612af2 100644
--- a/Xi/xiproperty.c
+++ b/Xi/xiproperty.c
@@ -706,7 +706,7 @@ XIDeleteDeviceProperty (DeviceIntPtr device, Atom property, Bool fromClient)
 int
 XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
                         int format, int mode, unsigned long len,
-                        const pointer value, Bool sendevent)
+                        const void *value, Bool sendevent)
 {
     XIPropertyPtr               prop;
     int                         size_in_bytes;
diff --git a/include/exevents.h b/include/exevents.h
index bd16970..31acb30 100644
--- a/include/exevents.h
+++ b/include/exevents.h
@@ -92,7 +92,7 @@ extern _X_EXPORT int XIChangeDeviceProperty(
         int                     /* format*/,
         int                     /* mode*/,
         unsigned long           /* len*/,
-        const pointer           /* value*/,
+        const void*             /* value*/,
         Bool                    /* sendevent*/
         );
 
-- 
1.7.7.4



More information about the xorg-devel mailing list