diff options
author | Ulrich Eckhardt <doomster@knuut.de> | 2008-10-06 14:02:24 -0700 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2010-11-14 20:03:55 +0900 |
commit | 5c26e6345f53ff957a908a1cc5623d5ec3800bf5 (patch) | |
tree | aad5271ad59974585103e175f8275e2a88aedb44 /image | |
parent | 0419234f8f4412ed3487a509fc07dd28e6a626fa (diff) |
Do not cast the return value of malloc() in modern C.
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
Diffstat (limited to 'image')
-rw-r--r-- | image/xcb_image.c | 2 |
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; |