summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Eckhardt <doomster@knuut.de>2008-10-06 14:02:24 -0700
committerBart Massey <bart@cs.pdx.edu>2008-10-06 14:02:24 -0700
commit282cfce82c0ecdb549c5d0a33558d06489d39f6b (patch)
tree633665adc1609b4ef157ad4b01492ce626153eb7
parent4d82e387654f86387124cce115cc1660a6d185b1 (diff)
Do not cast the return value of malloc() in modern C.
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
-rw-r--r--image/xcb_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/xcb_image.c b/image/xcb_image.c
index 2388948..701dda4 100644
--- a/image/xcb_image.c
+++ b/image/xcb_image.c
@@ -227,7 +227,7 @@ xcb_image_create (uint16_t width,
}
if (!format_valid(depth, bpp, unit, format, xpad))
return 0;
- image = (xcb_image_t *)malloc(sizeof(*image));
+ image = malloc(sizeof(*image));
if (image == 0)
return 0;
image->width = width;