summaryrefslogtreecommitdiff
path: root/src/FetchName.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/FetchName.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/FetchName.c')
-rw-r--r--src/FetchName.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FetchName.c b/src/FetchName.c
index 22bd4607..8605a6df 100644
--- a/src/FetchName.c
+++ b/src/FetchName.c
@@ -58,7 +58,7 @@ Status XFetchName (
*name = (char *)data;
return(1);
}
- if (data) Xfree ((char *)data);
+ if (data) Xfree (data);
*name = NULL;
return(0);
}
@@ -89,7 +89,7 @@ Status XGetIconName (
*icon_name = (char*)data;
return(1);
}
- if (data) Xfree ((char *)data);
+ if (data) Xfree (data);
*icon_name = NULL;
return(0);
}