summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-29 19:52:38 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-29 19:52:38 -0700
commit9d6d59f7a37f1290237721918583becb66516ec0 (patch)
tree5c0757e87fb962bed6adb1e7c5023a818c61cd33
parent65463d54b204df5ee83babeaf93c27ba1a82a7c9 (diff)
Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/cg6_driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cg6_driver.c b/src/cg6_driver.c
index 57eae62..c967bf6 100644
--- a/src/cg6_driver.c
+++ b/src/cg6_driver.c
@@ -170,7 +170,7 @@ CG6FreeRec(ScrnInfoPtr pScrn)
pCg6 = GET_CG6_FROM_SCRN(pScrn);
- xfree(pScrn->driverPrivate);
+ free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;
return;
@@ -240,7 +240,7 @@ CG6Probe(DriverPtr drv, int flags)
devSections, numDevSections,
drv, &usedChips);
- xfree(devSections);
+ free(devSections);
if (numUsed <= 0)
return FALSE;
@@ -274,9 +274,9 @@ CG6Probe(DriverPtr drv, int flags)
xf86AddEntityToScreen(pScrn, pEnt->index);
foundScreen = TRUE;
}
- xfree(pEnt);
+ free(pEnt);
}
- xfree(usedChips);
+ free(usedChips);
return foundScreen;
}
@@ -351,7 +351,7 @@ CG6PreInit(ScrnInfoPtr pScrn, int flags)
/* Collect all of the relevant option flags (fill in pScrn->options) */
xf86CollectOptions(pScrn, NULL);
/* Process the options */
- if (!(pCg6->Options = xalloc(sizeof(CG6Options))))
+ if (!(pCg6->Options = malloc(sizeof(CG6Options))))
return FALSE;
memcpy(pCg6->Options, CG6Options, sizeof(CG6Options));
xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pCg6->Options);