aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/lcCharSet.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-10 23:51:08 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:28 +0200
commitc161df4fee61819a28089682963cc2e721ca22c8 (patch)
tree00c3f8e2c0aba620b35cc7301acef494898a9542 /nx-X11/lib/X11/lcCharSet.c
parent5d6cda4f6442c524db3c52b272f7ff5f7225bec6 (diff)
downloadnx-libs-c161df4fee61819a28089682963cc2e721ca22c8.tar.gz
nx-libs-c161df4fee61819a28089682963cc2e721ca22c8.tar.bz2
nx-libs-c161df4fee61819a28089682963cc2e721ca22c8.zip
Remove even more casts of return values from Xmalloc/Xrealloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/lcCharSet.c')
-rw-r--r--nx-X11/lib/X11/lcCharSet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/lib/X11/lcCharSet.c b/nx-X11/lib/X11/lcCharSet.c
index 5d287811c..57f13d501 100644
--- a/nx-X11/lib/X11/lcCharSet.c
+++ b/nx-X11/lib/X11/lcCharSet.c
@@ -92,7 +92,7 @@ _XlcAddCharSet(
if (_XlcGetCharSet(charset->name))
return False;
- list = (XlcCharSetList) Xmalloc(sizeof(XlcCharSetListRec));
+ list = Xmalloc(sizeof(XlcCharSetListRec));
if (list == NULL)
return False;
@@ -184,7 +184,7 @@ _XlcCreateDefaultCharSet(
ct_sequence_len = strlen(ct_sequence);
/* Fill in name and xrm_name. */
- tmp = (char *) Xmalloc(name_len + 1 + ct_sequence_len + 1);
+ tmp = Xmalloc(name_len + 1 + ct_sequence_len + 1);
if (tmp == NULL) {
Xfree((char *) charset);
return (XlcCharSet) NULL;
@@ -196,7 +196,7 @@ _XlcCreateDefaultCharSet(
/* Fill in encoding_name and xrm_encoding_name. */
if ((colon = strchr(charset->name, ':')) != NULL) {
unsigned int length = colon - charset->name;
- char *encoding_tmp = (char *) Xmalloc(length + 1);
+ char *encoding_tmp = Xmalloc(length + 1);
if (encoding_tmp == NULL) {
Xfree((char *) charset->name);
Xfree((char *) charset);