diff options
author | Keith Packard <keithp@keithp.com> | 2015-06-22 09:36:08 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-12-28 12:54:40 +0100 |
commit | 68dd0b52e13c844d662192654fb10cb993257a59 (patch) | |
tree | a97ab98a06147cd5fb194063a9984dc3973fba55 /nx-X11/programs/Xserver/Xext/appgroup.c | |
parent | e9f44221b2520a1d894b3c125269b5d10438453b (diff) | |
download | nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.tar.gz nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.tar.bz2 nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.zip |
Replace 'pointer' type with 'void *'
This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer'
is used throughout the X server for other things, and having duplicate
names generates compiler warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/Xext/appgroup.c')
-rw-r--r-- | nx-X11/programs/Xserver/Xext/appgroup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/Xext/appgroup.c b/nx-X11/programs/Xserver/Xext/appgroup.c index ad4afa9e4..e23ceca59 100644 --- a/nx-X11/programs/Xserver/Xext/appgroup.c +++ b/nx-X11/programs/Xserver/Xext/appgroup.c @@ -92,7 +92,7 @@ extern int connBlockScreenStart; static int XagAppGroupFree( - pointer what, + void * what, XID id) /* unused */ { int i; @@ -126,8 +126,8 @@ int XagAppGroupFree( /* static */ void XagClientStateChange( CallbackListPtr* pcbl, - pointer nulldata, - pointer calldata) + void * nulldata, + void * calldata) { SecurityAuthorizationPtr pAuth; NewClientInfoRec* pci = (NewClientInfoRec*) calldata; @@ -262,7 +262,7 @@ void XagResetProc( { DeleteCallback (&ClientStateCallback, XagClientStateChange, NULL); XagCallbackRefCount = 0; - while (appGrpList) XagAppGroupFree ((pointer) appGrpList, 0); + while (appGrpList) XagAppGroupFree ((void *) appGrpList, 0); } static @@ -476,7 +476,7 @@ int ProcXagCreate ( return BadAlloc; ret = AttrValidate (client, stuff->attrib_mask, pAppGrp); if (ret != Success) { - XagAppGroupFree ((pointer)pAppGrp, (XID)0); + XagAppGroupFree ((void *)pAppGrp, (XID)0); return ret; } if (pAppGrp->single_screen) { @@ -484,7 +484,7 @@ int ProcXagCreate ( if (!pAppGrp->ConnectionInfo) return BadAlloc; } - if (!AddResource (stuff->app_group, RT_APPGROUP, (pointer)pAppGrp)) + if (!AddResource (stuff->app_group, RT_APPGROUP, (void *)pAppGrp)) return BadAlloc; if (XagCallbackRefCount++ == 0) (void) AddCallback (&ClientStateCallback, XagClientStateChange, NULL); @@ -824,6 +824,6 @@ void XagCallClientStateChange( NewClientInfoRec clientinfo; clientinfo.client = client; - XagClientStateChange (NULL, NULL, (pointer)&clientinfo); + XagClientStateChange (NULL, NULL, (void *)&clientinfo); } } |