summaryrefslogtreecommitdiff
path: root/src/Xdbe.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 15:44:45 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 15:44:45 -0700
commitace42fef753c1444cfc208da6bb282abbbc279ab (patch)
treec1770abaaf8997a097a3d8ce88ef980706fe640b /src/Xdbe.c
parentf12be5ac59a48249c77b8e61e78bceb9ad782542 (diff)
downloadxorg-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Xdbe.c b/src/Xdbe.c
index 13ec347..71d41af 100644
--- a/src/Xdbe.c
+++ b/src/Xdbe.c
@@ -443,8 +443,7 @@ XdbeBackBufferAttributes *XdbeGetBackBufferAttributes(
DbeCheckExtension(dpy, info, (XdbeBackBufferAttributes *)NULL);
- if (!(attr =
- (XdbeBackBufferAttributes *)Xmalloc(sizeof(XdbeBackBufferAttributes)))) {
+ if (!(attr = Xmalloc(sizeof(XdbeBackBufferAttributes)))) {
return NULL;
}