From 8d9ba2405d1f1e58a0cfb570e83e9206af8525b5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 28 Nov 2006 15:44:06 -0800 Subject: sparse cleanups (use NULL instead of 0 for pointers) --- src/i810_dri.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/i810_dri.c b/src/i810_dri.c index a8c10ffc..3e322837 100644 --- a/src/i810_dri.c +++ b/src/i810_dri.c @@ -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; -- cgit v1.2.3