summaryrefslogtreecommitdiff
path: root/uxa/uxa.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-04 16:04:37 -0700
committerEric Anholt <eric@anholt.net>2010-06-06 15:56:35 -0700
commit2c1fda08e889cad07acb452230da06f9c383d21c (patch)
tree365ebf1e27b2a2ac784ab469d109d86e2edf6597 /uxa/uxa.c
parentb586624d4f2908d2a998ba87fe0ae31c10f46b91 (diff)
Use libc instead of deprecated libc wrappers for malloc/calloc/free.
Diffstat (limited to 'uxa/uxa.c')
-rw-r--r--uxa/uxa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uxa/uxa.c b/uxa/uxa.c
index a9a705c2..32b007d6 100644
--- a/uxa/uxa.c
+++ b/uxa/uxa.c
@@ -405,7 +405,7 @@ static Bool uxa_close_screen(int i, ScreenPtr pScreen)
}
#endif
- xfree(uxa_screen);
+ free(uxa_screen);
return (*pScreen->CloseScreen) (i, pScreen);
}
@@ -416,13 +416,13 @@ static Bool uxa_close_screen(int i, ScreenPtr pScreen)
* without breaking ABI between UXA and the drivers. The driver's
* responsibility is to check beforehand that the UXA module has a matching
* major number and sufficient minor. Drivers are responsible for freeing the
- * driver structure using xfree().
+ * driver structure using free().
*
* @return a newly allocated, zero-filled driver structure
*/
uxa_driver_t *uxa_driver_alloc(void)
{
- return xcalloc(1, sizeof(uxa_driver_t));
+ return calloc(1, sizeof(uxa_driver_t));
}
/**
@@ -467,7 +467,7 @@ Bool uxa_driver_init(ScreenPtr screen, uxa_driver_t * uxa_driver)
"non-NULL\n", screen->myNum);
return FALSE;
}
- uxa_screen = xcalloc(sizeof(uxa_screen_t), 1);
+ uxa_screen = calloc(sizeof(uxa_screen_t), 1);
if (!uxa_screen) {
LogMessage(X_WARNING,