Commit 8d9ba240 authored by Eric Anholt's avatar Eric Anholt

sparse cleanups (use NULL instead of 0 for pointers)

parent dbb8135e
......@@ -171,9 +171,9 @@ I810InitVisualConfigs(ScreenPtr pScreen)
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
I810Ptr pI810 = I810PTR(pScrn);
int numConfigs = 0;
__GLXvisualConfig *pConfigs = 0;
I810ConfigPrivPtr pI810Configs = 0;
I810ConfigPrivPtr *pI810ConfigPtrs = 0;
__GLXvisualConfig *pConfigs = NULL;
I810ConfigPrivPtr pI810Configs = NULL;
I810ConfigPrivPtr *pI810ConfigPtrs = NULL;
int accum, stencil, db, depth;
int i;
......@@ -385,7 +385,7 @@ I810DRIScreenInit(ScreenPtr pScreen)
if (!(pI810DRI = (I810DRIPtr) xcalloc(sizeof(I810DRIRec), 1))) {
DRIDestroyInfoRec(pI810->pDRIInfo);
pI810->pDRIInfo = 0;
pI810->pDRIInfo = NULL;
return FALSE;
}
pDRIInfo->devPrivate = pI810DRI;
......@@ -413,9 +413,9 @@ I810DRIScreenInit(ScreenPtr pScreen)
xf86DrvMsg(pScreen->myNum, X_ERROR,
"[dri] DRIScreenInit failed. Disabling DRI.\n");
xfree(pDRIInfo->devPrivate);
pDRIInfo->devPrivate = 0;
pDRIInfo->devPrivate = NULL;
DRIDestroyInfoRec(pI810->pDRIInfo);
pI810->pDRIInfo = 0;
pI810->pDRIInfo = NULL;
return FALSE;
}
......@@ -1070,10 +1070,10 @@ I810DRICloseScreen(ScreenPtr pScreen)
if (pI810->pDRIInfo) {
if (pI810->pDRIInfo->devPrivate) {
xfree(pI810->pDRIInfo->devPrivate);
pI810->pDRIInfo->devPrivate = 0;
pI810->pDRIInfo->devPrivate = NULL;
}
DRIDestroyInfoRec(pI810->pDRIInfo);
pI810->pDRIInfo = 0;
pI810->pDRIInfo = NULL;
}
if (pI810->pVisualConfigs)
xfree(pI810->pVisualConfigs);
......@@ -1200,9 +1200,9 @@ I810DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
BoxPtr pbox = REGION_RECTS(prgnSrc);
int nbox = REGION_NUM_RECTS(prgnSrc);
BoxPtr pboxNew1 = 0;
BoxPtr pboxNew2 = 0;
DDXPointPtr pptNew1 = 0;
BoxPtr pboxNew1 = NULL;
BoxPtr pboxNew2 = NULL;
DDXPointPtr pptNew1 = NULL;
DDXPointPtr pptSrc = &ptOldOrg;
int dx = pParent->drawable.x - ptOldOrg.x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment