[PATCH 5/5] Xext: SyncCreateSystemCounter returns a SyncCounter*

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 12 16:20:36 PDT 2012


type safety++

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

diff --git a/Xext/sync.c b/Xext/sync.c
index 002d40e..7791ab6 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -969,7 +969,7 @@ static int FreeCounter(void *, XID);
  * ***** System Counter utilities
  */
 
-pointer
+SyncCounter*
 SyncCreateSystemCounter(
 	const char *name,
 	CARD64 initial,
diff --git a/Xext/syncsrv.h b/Xext/syncsrv.h
index 3573fe9..0e26b2d 100644
--- a/Xext/syncsrv.h
+++ b/Xext/syncsrv.h
@@ -116,7 +116,7 @@ typedef union {
     SyncAwait	    await;
 } SyncAwaitUnion;
 
-extern pointer SyncCreateSystemCounter(
+extern SyncCounter* SyncCreateSystemCounter(
     const char *name,
     CARD64 inital_value,
     CARD64 resolution,
-- 
1.7.7.6



More information about the xorg-devel mailing list