summaryrefslogtreecommitdiff
path: root/src/listen.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-08 22:17:27 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-08 22:20:26 -0700
commit4033226105fa861ab5f0276850afc24c0fa45406 (patch)
treeb1fa733e7b192caed635d3a181b06b95d58f5711 /src/listen.c
parent10c30ae6a7df1a7c352a1d611a313dffcaa42082 (diff)
downloadxorg-lib-libICE-4033226105fa861ab5f0276850afc24c0fa45406.tar.gz
Get rid of casts to (char *) in calls to free()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/listen.c')
-rw-r--r--src/listen.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/listen.c b/src/listen.c
index 0348fec..0bf1a80 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -67,7 +67,7 @@ IceListenForConnections (
{
for (i = 0; i < transCount; i++)
_IceTransClose (transConns[i]);
- free ((char *) transConns);
+ free (transConns);
return (0);
}
@@ -120,9 +120,9 @@ IceListenForConnections (
strncpy (errorStringRet, "Malloc failed", errorLength);
for (j = 0; j < i; j++)
- free ((char *) (*listenObjsRet)[j]);
+ free ((*listenObjsRet)[j]);
- free ((char *) *listenObjsRet);
+ free (*listenObjsRet);
*listenObjsRet = NULL;
status = 0;
@@ -152,8 +152,8 @@ IceListenForConnections (
_IceTransClose (transConns[i]);
}
- free ((char *) listenObjs);
- free ((char *) transConns);
+ free (listenObjs);
+ free (transConns);
return (status);
}
@@ -249,10 +249,10 @@ IceFreeListenObjs (
{
free (listenObjs[i]->network_id);
_IceTransClose (listenObjs[i]->trans_conn);
- free ((char *) listenObjs[i]);
+ free (listenObjs[i]);
}
- free ((char *) listenObjs);
+ free (listenObjs);
}