summaryrefslogtreecommitdiff
path: root/src/XrrCrtc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-17 17:57:19 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-17 17:57:19 -0700
commit7181160b2c32b1bb804792990783fa25c1122bae (patch)
tree2c5f013564d9ee3a00b02e42fe6ca029772f0d7d /src/XrrCrtc.c
parent8710ed270fbb9ec905b906826cb09095c57003f8 (diff)
Remove unnecessary casts of return values from malloc()
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/XrrCrtc.c')
-rw-r--r--src/XrrCrtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index 2da7ed2..76024b1 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -75,7 +75,7 @@ XRRGetCrtcInfo (Display *dpy, XRRScreenResources *resources, RRCrtc crtc)
rep.nOutput * sizeof (RROutput) +
rep.nPossibleOutput * sizeof (RROutput));
- xci = (XRRCrtcInfo *) Xmalloc(rbytes);
+ xci = Xmalloc(rbytes);
}
else
{
@@ -530,7 +530,7 @@ XRRGetPanning (Display *dpy, XRRScreenResources *resources, RRCrtc crtc)
return NULL;
}
- if (! (xp = (XRRPanning *) Xmalloc(sizeof(XRRPanning))) ) {
+ if (! (xp = Xmalloc(sizeof(XRRPanning))) ) {
_XEatData (dpy, sizeof(XRRPanning));
UnlockDisplay (dpy);
SyncHandle ();