diff options
author | Brian Paul <[email protected]> | 2012-09-01 07:47:24 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-09-01 07:47:24 -0600 |
commit | 4fdac659f800da0aa4504489f627738c83c94d66 (patch) | |
tree | 2b2fb4cb36ef6fbf81c5783bad39d37d562224e9 /src/mesa/drivers/dri/intel | |
parent | 33bb8c051df3f2561c7b4a5ad7abefa3fce99d37 (diff) |
mesa: s/CALLOC/calloc/
v2: replace instances in dri/common/ dirs
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 7476ca00414..6c53b4762e7 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -248,7 +248,7 @@ intel_allocate_image(int dri_format, void *loaderPrivate) { __DRIimage *image; - image = CALLOC(sizeof *image); + image = calloc(1, sizeof *image); if (image == NULL) return NULL; @@ -333,7 +333,7 @@ intel_create_image_from_renderbuffer(__DRIcontext *context, } irb = intel_renderbuffer(rb); - image = CALLOC(sizeof *image); + image = calloc(1, sizeof *image); if (image == NULL) return NULL; @@ -440,7 +440,7 @@ intel_dup_image(__DRIimage *orig_image, void *loaderPrivate) { __DRIimage *image; - image = CALLOC(sizeof *image); + image = calloc(1, sizeof *image); if (image == NULL) return NULL; @@ -1061,7 +1061,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) } /* Allocate the private area */ - intelScreen = CALLOC(sizeof *intelScreen); + intelScreen = calloc(1, sizeof *intelScreen); if (!intelScreen) { fprintf(stderr, "\nERROR! Allocating private area failed\n"); return false; @@ -1143,7 +1143,7 @@ intelAllocateBuffer(__DRIscreen *screen, assert(attachment == __DRI_BUFFER_FRONT_LEFT || attachment == __DRI_BUFFER_BACK_LEFT); - intelBuffer = CALLOC(sizeof *intelBuffer); + intelBuffer = calloc(1, sizeof *intelBuffer); if (intelBuffer == NULL) return NULL; |