diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-12 16:03:50 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-22 11:33:21 +1000 |
commit | 61cb98da1c6199964825de158d9eee7682d9c983 (patch) | |
tree | 8fa57c5f6e3e01c1ec96038d3496eb8f05e9d127 | |
parent | 45fe3085f8f45e529383025414fdd263d86dfd2b (diff) |
Xext: SyncCreateSystemCounter returns a SyncCounter*
type safety++
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Bryce Harrington <bryce@canonical.com>
-rw-r--r-- | Xext/sync.c | 2 | ||||
-rw-r--r-- | Xext/syncsrv.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Xext/sync.c b/Xext/sync.c index 3764dbf61..f2bcd2512 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -921,7 +921,7 @@ static int FreeCounter(void *, XID); * ***** System Counter utilities */ -pointer +SyncCounter* SyncCreateSystemCounter(const char *name, CARD64 initial, CARD64 resolution, diff --git a/Xext/syncsrv.h b/Xext/syncsrv.h index f62b27946..1e59dedfe 100644 --- a/Xext/syncsrv.h +++ b/Xext/syncsrv.h @@ -116,12 +116,12 @@ typedef union { SyncAwait await; } SyncAwaitUnion; -extern pointer SyncCreateSystemCounter(const char *name, - CARD64 initial_value, - CARD64 resolution, - SyncCounterType counterType, - SyncSystemCounterQueryValue QueryValue, - SyncSystemCounterBracketValues BracketValues +extern SyncCounter* SyncCreateSystemCounter(const char *name, + CARD64 initial_value, + CARD64 resolution, + SyncCounterType counterType, + SyncSystemCounterQueryValue QueryValue, + SyncSystemCounterBracketValues BracketValues ); extern void SyncChangeCounter(SyncCounter *pCounter, |