summaryrefslogtreecommitdiff
path: root/src/i830_video.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 /src/i830_video.c
parentb586624d4f2908d2a998ba87fe0ae31c10f46b91 (diff)
Use libc instead of deprecated libc wrappers for malloc/calloc/free.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index c6fd78d3..d4f2b629 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -350,7 +350,7 @@ void I830InitVideo(ScreenPtr screen)
* adaptors.
*/
newAdaptors =
- xalloc((num_adaptors + 2) * sizeof(XF86VideoAdaptorPtr *));
+ malloc((num_adaptors + 2) * sizeof(XF86VideoAdaptorPtr *));
if (newAdaptors == NULL)
return;
@@ -413,7 +413,7 @@ void I830InitVideo(ScreenPtr screen)
if (texturedAdaptor)
intel_xvmc_adaptor_init(screen);
#endif
- xfree(adaptors);
+ free(adaptors);
}
static XF86VideoAdaptorPtr I830SetupImageVideoOverlay(ScreenPtr screen)
@@ -426,7 +426,7 @@ static XF86VideoAdaptorPtr I830SetupImageVideoOverlay(ScreenPtr screen)
OVERLAY_DEBUG("I830SetupImageVideoOverlay\n");
- if (!(adapt = xcalloc(1, sizeof(XF86VideoAdaptorRec) +
+ if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
sizeof(intel_adaptor_private) + sizeof(DevUnion))))
return NULL;
@@ -536,16 +536,16 @@ static XF86VideoAdaptorPtr I830SetupImageVideoTextured(ScreenPtr screen)
nAttributes = NUM_TEXTURED_ATTRIBUTES;
- adapt = xcalloc(1, sizeof(XF86VideoAdaptorRec));
- adaptor_privs = xcalloc(nports, sizeof(intel_adaptor_private));
- devUnions = xcalloc(nports, sizeof(DevUnion));
- attrs = xcalloc(nAttributes, sizeof(XF86AttributeRec));
+ adapt = calloc(1, sizeof(XF86VideoAdaptorRec));
+ adaptor_privs = calloc(nports, sizeof(intel_adaptor_private));
+ devUnions = calloc(nports, sizeof(DevUnion));
+ attrs = calloc(nAttributes, sizeof(XF86AttributeRec));
if (adapt == NULL || adaptor_privs == NULL || devUnions == NULL ||
attrs == NULL) {
- xfree(adapt);
- xfree(adaptor_privs);
- xfree(devUnions);
- xfree(attrs);
+ free(adapt);
+ free(adaptor_privs);
+ free(devUnions);
+ free(attrs);
return NULL;
}