summaryrefslogtreecommitdiff
path: root/src/GetNrmHint.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-11 00:07:33 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-20 12:51:09 -0700
commitbf3501e0395abe890acfea98fdd9f50a6966f118 (patch)
tree7c44fa106df77e7fc6044d69838906e82d841383 /src/GetNrmHint.c
parent6ead9dd92ab90aabd9f0e328d59597e6b5bc09d3 (diff)
downloadxorg-lib-libX11-bf3501e0395abe890acfea98fdd9f50a6966f118.tar.gz
Remove unnecessary casts of pointers to (char *) in calls to Xfree()
Left one cast behind that is necessary to change from const char * to char * in src/xlibi18n/lcCharSet.c. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/GetNrmHint.c')
-rw-r--r--src/GetNrmHint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GetNrmHint.c b/src/GetNrmHint.c
index 6f328e8f..5e4143b2 100644
--- a/src/GetNrmHint.c
+++ b/src/GetNrmHint.c
@@ -83,7 +83,7 @@ Status XGetWMSizeHints (
if ((actual_type != XA_WM_SIZE_HINTS) ||
(nitems < OldNumPropSizeElements) || (actual_format != 32)) {
- if (prop != NULL) Xfree ((char *)prop);
+ if (prop != NULL) Xfree (prop);
return False;
}
@@ -112,7 +112,7 @@ Status XGetWMSizeHints (
*supplied |= (PBaseSize | PWinGravity);
}
hints->flags &= (*supplied); /* get rid of unwanted bits */
- Xfree((char *)prop);
+ Xfree(prop);
return True;
}