From 7181160b2c32b1bb804792990783fa25c1122bae Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 17 Oct 2022 17:57:19 -0700 Subject: Remove unnecessary casts of return values from malloc() Not needed in C89 and later Signed-off-by: Alan Coopersmith --- src/XrrOutput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/XrrOutput.c') 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); -- cgit v1.2.3