mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-24 20:55:49 +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:
parent
93fa64e17d
commit
60014a4a98
319 changed files with 1917 additions and 1914 deletions
|
|
@ -133,7 +133,7 @@ _X_HIDDEN int
|
|||
validGlxContext(ClientPtr client, XID id, int access_mode,
|
||||
__GLXcontext ** context, int *err)
|
||||
{
|
||||
*err = dixLookupResourceByType((pointer *) context, id,
|
||||
*err = dixLookupResourceByType((void **) context, id,
|
||||
__glXContextRes, client, access_mode);
|
||||
if (*err != Success || (*context)->idExists == GL_FALSE) {
|
||||
client->errorValue = id;
|
||||
|
|
@ -151,7 +151,7 @@ validGlxDrawable(ClientPtr client, XID id, int type, int access_mode,
|
|||
{
|
||||
int rc;
|
||||
|
||||
rc = dixLookupResourceByType((pointer *) drawable, id,
|
||||
rc = dixLookupResourceByType((void **) drawable, id,
|
||||
__glXDrawableRes, client, access_mode);
|
||||
if (rc != Success && rc != BadValue) {
|
||||
*err = rc;
|
||||
|
|
@ -2507,7 +2507,7 @@ __glXpresentCompleteNotify(WindowPtr window, CARD8 present_mode, CARD32 serial,
|
|||
int glx_type;
|
||||
int rc;
|
||||
|
||||
rc = dixLookupResourceByType((pointer *) &drawable, window->drawable.id,
|
||||
rc = dixLookupResourceByType((void **) &drawable, window->drawable.id,
|
||||
__glXDrawableRes, serverClient, DixGetAttrAccess);
|
||||
|
||||
if (rc != Success)
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ __glXAddContext(__GLXcontext * cx)
|
|||
{
|
||||
/* Register this context as a resource.
|
||||
*/
|
||||
if (!AddResource(cx->id, __glXContextRes, (pointer)cx)) {
|
||||
if (!AddResource(cx->id, __glXContextRes, (void *)cx)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
|
|
@ -278,7 +278,7 @@ glxGetClient(ClientPtr pClient)
|
|||
}
|
||||
|
||||
static void
|
||||
glxClientCallback(CallbackListPtr *list, pointer closure, pointer data)
|
||||
glxClientCallback(CallbackListPtr *list, void *closure, void *data)
|
||||
{
|
||||
NewClientInfoRec *clientinfo = (NewClientInfoRec *) data;
|
||||
ClientPtr pClient = clientinfo->client;
|
||||
|
|
|
|||
Loading…
Reference in a new issue