summaryrefslogtreecommitdiff
path: root/src/connect.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/connect.c
parent10c30ae6a7df1a7c352a1d611a313dffcaa42082 (diff)
Get rid of casts to (char *) in calls to free()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/connect.c')
-rw-r--r--src/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connect.c b/src/connect.c
index 193a746..c25b21f 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -158,7 +158,7 @@ IceOpenConnection (
if ((iceConn->trans_conn = ConnectToPeer (networkIdsList,
&iceConn->connection_string)) == NULL)
{
- free ((char *) iceConn);
+ free (iceConn);
strncpy (errorStringRet, "Could not open network socket", errorLength);
return (NULL);
}
@@ -392,7 +392,7 @@ IceOpenConnection (
iceConn->connection_string;
_IceConnectionCount++;
- free ((char *) iceConn->connect_to_you);
+ free (iceConn->connect_to_you);
iceConn->connect_to_you = NULL;
iceConn->connection_status = IceConnectAccepted;