summaryrefslogtreecommitdiff
path: root/src/XrrProviderProperty.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/XrrProviderProperty.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/XrrProviderProperty.c')
-rw-r--r--src/XrrProviderProperty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrProviderProperty.c b/src/XrrProviderProperty.c
index 6d0d186..2629f44 100644
--- a/src/XrrProviderProperty.c
+++ b/src/XrrProviderProperty.c
@@ -60,7 +60,7 @@ XRRListProviderProperties (Display *dpy, RRProvider provider, int *nprop)
size_t rbytes = rep.nAtoms * sizeof (Atom);
size_t nbytes = rep.nAtoms << 2;
- props = (Atom *) Xmalloc (rbytes);
+ props = Xmalloc (rbytes);
if (props == NULL) {
_XEatDataWords (dpy, rep.length);
UnlockDisplay (dpy);