diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-10 23:51:08 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | c161df4fee61819a28089682963cc2e721ca22c8 (patch) | |
tree | 00c3f8e2c0aba620b35cc7301acef494898a9542 /nx-X11/lib/X11/imExten.c | |
parent | 5d6cda4f6442c524db3c52b272f7ff5f7225bec6 (diff) | |
download | nx-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/imExten.c')
-rw-r--r-- | nx-X11/lib/X11/imExten.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/lib/X11/imExten.c b/nx-X11/lib/X11/imExten.c index 779cead0b..7ed4c6be9 100644 --- a/nx-X11/lib/X11/imExten.c +++ b/nx-X11/lib/X11/imExten.c @@ -271,7 +271,7 @@ _XimExtForwardKeyEvent( preply = reply; } else { buf_sizex = len; - preply = (XPointer)Xmalloc(buf_size); + preply = Xmalloc(buf_size); ret_code = _XimRead(im, &len, preply, buf_size, _XimExtForwardKeyEventCheck, (XPointer)ic); if(ret_code != XIM_TRUE) { @@ -436,7 +436,7 @@ _XimExtension( + len + XIM_PAD(len); - if (!(buf = (CARD8 *)Xmalloc(buf_len))) + if (!(buf = Xmalloc(buf_len))) return False; buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE]; @@ -465,7 +465,7 @@ _XimExtension( preply = reply; } else { buf_size = len; - preply = (XPointer)Xmalloc(buf_size); + preply = Xmalloc(buf_size); ret_code = _XimRead(im, &len, reply, buf_size, _XimQueryExtensionCheck, 0); if(ret_code != XIM_TRUE) { |