diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-10 15:44:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-10 15:44:45 -0700 |
commit | ace42fef753c1444cfc208da6bb282abbbc279ab (patch) | |
tree | c1770abaaf8997a097a3d8ce88ef980706fe640b /src/Xdbe.c | |
parent | f12be5ac59a48249c77b8e61e78bceb9ad782542 (diff) | |
download | xorg-lib-libXext-ace42fef753c1444cfc208da6bb282abbbc279ab.tar.gz |
Remove unnecessary casts of malloc/calloc results
These aren't needed in C89 and later, but can hide missing prototypes
that generate broken code on platforms where pointers are larger than ints.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xdbe.c')
-rw-r--r-- | src/Xdbe.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -443,8 +443,7 @@ XdbeBackBufferAttributes *XdbeGetBackBufferAttributes( DbeCheckExtension(dpy, info, (XdbeBackBufferAttributes *)NULL); - if (!(attr = - (XdbeBackBufferAttributes *)Xmalloc(sizeof(XdbeBackBufferAttributes)))) { + if (!(attr = Xmalloc(sizeof(XdbeBackBufferAttributes)))) { return NULL; } |