diff options
author | Eric Anholt <eric@anholt.net> | 2006-11-28 15:44:06 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-11-28 15:44:06 -0800 |
commit | 8d9ba2405d1f1e58a0cfb570e83e9206af8525b5 (patch) | |
tree | 4859314488220e4afec9ec362649b6b6e2ed8f7b /src/i810_dri.c | |
parent | dbb8135e10e943a4d4e65f95853eeccc764ccf24 (diff) |
sparse cleanups (use NULL instead of 0 for pointers)
Diffstat (limited to 'src/i810_dri.c')
-rw-r--r-- | src/i810_dri.c | 22 |
1 files 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; |