summaryrefslogtreecommitdiff
path: root/src/XrrOutput.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/XrrOutput.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/XrrOutput.c')
-rw-r--r--src/XrrOutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrOutput.c b/src/XrrOutput.c
index 30f3d40..7d04322 100644
--- a/src/XrrOutput.c
+++ b/src/XrrOutput.c
@@ -90,7 +90,7 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output)
rep.nClones * sizeof (RROutput) +
rep.nameLength + 1); /* '\0' terminate name */
- xoi = (XRROutputInfo *) Xmalloc(rbytes);
+ xoi = Xmalloc(rbytes);
if (xoi == NULL) {
_XEatDataWords (dpy, rep.length - (OutputInfoExtra >> 2));
UnlockDisplay (dpy);