diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:31:41 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:31:41 -0700 |
commit | 9a74512ffdc1628f1b87d2191439915c63b9104f (patch) | |
tree | 8a58dec4a8604228908b09cdb69a286d89c271d2 /src/process.c | |
parent | 4033226105fa861ab5f0276850afc24c0fa45406 (diff) |
Stop casting return values from malloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c index f072674..f0c3369 100644 --- a/src/process.c +++ b/src/process.c @@ -921,7 +921,7 @@ ProcessConnectionSetup ( if ((hisAuthCount = message->authCount) > 0) { - hisAuthNames = (char **) malloc (hisAuthCount * sizeof (char *)); + hisAuthNames = malloc (hisAuthCount * sizeof (char *)); EXTRACT_LISTOF_STRING (pData, swap, hisAuthCount, hisAuthNames); } @@ -1056,7 +1056,7 @@ ProcessConnectionSetup ( AuthRequired (iceConn, hisAuthIndex, authDataLen, authData); - iceConn->connect_to_me = setupInfo = (_IceConnectToMeInfo *) + iceConn->connect_to_me = setupInfo = malloc (sizeof (_IceConnectToMeInfo)); setupInfo->my_version_index = myVersionIndex; @@ -1967,7 +1967,7 @@ ProcessProtocolSetup ( if ((hisAuthCount = message->authCount) > 0) { - hisAuthNames = (char **) malloc (hisAuthCount * sizeof (char *)); + hisAuthNames = malloc (hisAuthCount * sizeof (char *)); EXTRACT_LISTOF_STRING (pData, swap, hisAuthCount, hisAuthNames); } @@ -2097,8 +2097,7 @@ ProcessProtocolSetup ( AuthRequired (iceConn, hisAuthIndex, authDataLen, authData); iceConn->protosetup_to_me = setupInfo = - (_IceProtoSetupToMeInfo *) malloc ( - sizeof (_IceProtoSetupToMeInfo)); + malloc (sizeof (_IceProtoSetupToMeInfo)); setupInfo->his_opcode = hisOpcode; setupInfo->my_opcode = myOpcode; |