mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwin: use NULL instead of NullClient
No need to have another name for NULL, we can use NULL directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
1975ae8a5f
commit
1d1ae20e75
@@ -734,7 +734,7 @@ glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||
GLWIN_TRACE_MSG("glxWinCopyWindow pWindow %p", pWindow);
|
||||
|
||||
dixLookupResourceByType((void *) &pGlxDraw, pWindow->drawable.id,
|
||||
__glXDrawableRes, NullClient, DixUnknownAccess);
|
||||
__glXDrawableRes, NULL, DixUnknownAccess);
|
||||
|
||||
/*
|
||||
Discard any CopyWindow requests if a GL drawing context is pointing at the window
|
||||
|
||||
@@ -180,7 +180,7 @@ winUninstallColormap(ColormapPtr pmap)
|
||||
/* Install the default cmap in place of the cmap to be uninstalled */
|
||||
if (pmap->mid != pmap->pScreen->defColormap) {
|
||||
dixLookupResourceByType((void *) &curpmap, pmap->pScreen->defColormap,
|
||||
X11_RESTYPE_COLORMAP, NullClient, DixUnknownAccess);
|
||||
X11_RESTYPE_COLORMAP, NULL, DixUnknownAccess);
|
||||
(*pmap->pScreen->InstallColormap) (curpmap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ winDisplayExitDialog(winPrivScreenPtr pScreenPriv)
|
||||
|
||||
/* Count up running clients (clients[0] is serverClient) */
|
||||
for (i = 1; i < currentMaxClients; i++)
|
||||
if (clients[i] != NullClient)
|
||||
if (clients[i] != NULL)
|
||||
liveClients++;
|
||||
/* Count down server internal clients */
|
||||
if (pScreenPriv->pScreenInfo->fMultiWindow)
|
||||
|
||||
Reference in New Issue
Block a user