summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-02 22:47:06 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-02 22:47:06 -0700
commit514d1326a2f89bdd5de9616cabc334bc6e39b7dc (patch)
tree3b4712452b042bc26b4f9e3e047457f6d84a58f9
parente7cc00f1f390f2516b077fd1286e798351094fc9 (diff)
Stop casting malloc return values
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xfindproxy.c2
-rw-r--r--xfindproxy.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/xfindproxy.c b/xfindproxy.c
index d2ea0e8..3541cec 100644
--- a/xfindproxy.c
+++ b/xfindproxy.c
@@ -93,7 +93,7 @@ cvthexkey(char *hexstr, char **ptrp) /* turn hex key string into octets */
/* now we know that the input is good */
len >>= 1;
- retval = (char *) malloc (len);
+ retval = malloc (len);
if (!retval)
return -1;
diff --git a/xfindproxy.h b/xfindproxy.h
index b4fa797..4306385 100644
--- a/xfindproxy.h
+++ b/xfindproxy.h
@@ -105,7 +105,7 @@ store_string(char *pBuf, const char *string)
{ \
CARD16 _len; \
EXTRACT_CARD16 (_pBuf, _swap, _len); \
- _string = (char *) malloc (_len + 1); \
+ _string = malloc (_len + 1); \
memcpy (_string, _pBuf, _len); \
_string[_len] = '\0'; \
_pBuf += _len; \