mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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>
This commit is contained in:
@@ -114,7 +114,7 @@ compCreateOverlayClient(ScreenPtr pScreen, ClientPtr pClient)
|
||||
* Create a resource for this element so it can be deleted
|
||||
* when the client goes away.
|
||||
*/
|
||||
if (!AddResource(pOc->resource, CompositeClientOverlayType, (pointer) pOc))
|
||||
if (!AddResource(pOc->resource, CompositeClientOverlayType, (void *) pOc))
|
||||
return NULL;
|
||||
|
||||
return pOc;
|
||||
@@ -152,7 +152,7 @@ compCreateOverlayWindow(ScreenPtr pScreen)
|
||||
if (pWin == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (!AddResource(pWin->drawable.id, RT_WINDOW, (pointer) pWin))
|
||||
if (!AddResource(pWin->drawable.id, RT_WINDOW, (void *) pWin))
|
||||
return FALSE;
|
||||
|
||||
MapWindow(pWin, serverClient);
|
||||
|
||||
Reference in New Issue
Block a user