~ubuntu-branches/ubuntu/utopic/libice/utopic

« back to all changes in this revision

Viewing changes to src/process.c

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2014-07-13 01:38:11 UTC
  • mfrom: (1.1.8) (0.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20140713013811-qtofhjeux1mfmx2j
Tags: 2:1.0.9-1
* New upstream release.
* Remove Cyril from Uploaders.
* Rewrite debian/rules using dh.  Switch to compat level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
921
921
 
922
922
    if ((hisAuthCount = message->authCount) > 0)
923
923
    {
924
 
        hisAuthNames = (char **) malloc (hisAuthCount * sizeof (char *));
 
924
        hisAuthNames = malloc (hisAuthCount * sizeof (char *));
925
925
        EXTRACT_LISTOF_STRING (pData, swap, hisAuthCount, hisAuthNames);
926
926
    }
927
927
 
960
960
            for (i = 0; i < hisAuthCount; i++)
961
961
                free (hisAuthNames[i]);
962
962
 
963
 
            free ((char *) hisAuthNames);
 
963
            free (hisAuthNames);
964
964
        }
965
965
 
966
966
        IceDisposeCompleteMessage (iceConn, pStart);
1056
1056
 
1057
1057
            AuthRequired (iceConn, hisAuthIndex, authDataLen, authData);
1058
1058
 
1059
 
            iceConn->connect_to_me = setupInfo = (_IceConnectToMeInfo *)
 
1059
            iceConn->connect_to_me = setupInfo =
1060
1060
                malloc (sizeof (_IceConnectToMeInfo));
1061
1061
 
1062
1062
            setupInfo->my_version_index = myVersionIndex;
1078
1078
        }
1079
1079
 
1080
1080
        if (authData && authDataLen > 0)
1081
 
            free ((char *) authData);
 
1081
            free (authData);
1082
1082
 
1083
1083
        if (errorString)
1084
1084
            free (errorString);
1098
1098
        for (i = 0; i < hisAuthCount; i++)
1099
1099
            free (hisAuthNames[i]);
1100
1100
 
1101
 
        free ((char *) hisAuthNames);
 
1101
        free (hisAuthNames);
1102
1102
    }
1103
1103
 
1104
1104
    IceDisposeCompleteMessage (iceConn, pStart);
1292
1292
    }
1293
1293
 
1294
1294
    if (replyData && replyDataLen > 0)
1295
 
        free ((char *) replyData);
 
1295
        free (replyData);
1296
1296
 
1297
1297
    IceDisposeCompleteMessage (iceConn, authData);
1298
1298
 
1377
1377
            {
1378
1378
                free (iceConn->connect_to_me->his_vendor);
1379
1379
                free (iceConn->connect_to_me->his_release);
1380
 
                free ((char *) iceConn->connect_to_me);
 
1380
                free (iceConn->connect_to_me);
1381
1381
                iceConn->connect_to_me = NULL;
1382
1382
 
1383
1383
                iceConn->connection_status = IceConnectRejected;
1405
1405
            iceConn->my_ice_version_index =
1406
1406
                iceConn->connect_to_me->my_version_index;
1407
1407
 
1408
 
            free ((char *) iceConn->connect_to_me);
 
1408
            free (iceConn->connect_to_me);
1409
1409
            iceConn->connect_to_me = NULL;
1410
1410
        }
1411
1411
    }
1571
1571
                free (iceConn->protosetup_to_me->his_vendor);
1572
1572
            if (iceConn->protosetup_to_me->his_release)
1573
1573
                free (iceConn->protosetup_to_me->his_release);
1574
 
            free ((char *) iceConn->protosetup_to_me);
 
1574
            free (iceConn->protosetup_to_me);
1575
1575
            iceConn->protosetup_to_me = NULL;
1576
1576
        }
1577
1577
    }
1585
1585
    }
1586
1586
 
1587
1587
    if (authData && authDataLen > 0)
1588
 
        free ((char *) authData);
 
1588
        free (authData);
1589
1589
 
1590
1590
    if (errorString)
1591
1591
        free (errorString);
1719
1719
    }
1720
1720
 
1721
1721
    if (replyData && replyDataLen > 0)
1722
 
        free ((char *) replyData);
 
1722
        free (replyData);
1723
1723
 
1724
1724
    IceDisposeCompleteMessage (iceConn, authData);
1725
1725
 
1967
1967
 
1968
1968
    if ((hisAuthCount = message->authCount) > 0)
1969
1969
    {
1970
 
        hisAuthNames = (char **) malloc (hisAuthCount * sizeof (char *));
 
1970
        hisAuthNames = malloc (hisAuthCount * sizeof (char *));
1971
1971
        EXTRACT_LISTOF_STRING (pData, swap, hisAuthCount, hisAuthNames);
1972
1972
    }
1973
1973
 
2005
2005
            for (i = 0; i < hisAuthCount; i++)
2006
2006
                free (hisAuthNames[i]);
2007
2007
 
2008
 
            free ((char *) hisAuthNames);
 
2008
            free (hisAuthNames);
2009
2009
        }
2010
2010
 
2011
2011
        IceDisposeCompleteMessage (iceConn, pStart);
2097
2097
            AuthRequired (iceConn, hisAuthIndex, authDataLen, authData);
2098
2098
 
2099
2099
            iceConn->protosetup_to_me = setupInfo =
2100
 
                (_IceProtoSetupToMeInfo *) malloc (
2101
 
                sizeof (_IceProtoSetupToMeInfo));
 
2100
                malloc (sizeof (_IceProtoSetupToMeInfo));
2102
2101
 
2103
2102
            setupInfo->his_opcode = hisOpcode;
2104
2103
            setupInfo->my_opcode = myOpcode;
2117
2116
        }
2118
2117
 
2119
2118
        if (authData && authDataLen > 0)
2120
 
            free ((char *) authData);
 
2119
            free (authData);
2121
2120
 
2122
2121
        if (errorString)
2123
2122
            free (errorString);
2219
2218
        for (i = 0; i < hisAuthCount; i++)
2220
2219
            free (hisAuthNames[i]);
2221
2220
 
2222
 
        free ((char *) hisAuthNames);
 
2221
        free (hisAuthNames);
2223
2222
    }
2224
2223
 
2225
2224
    IceDisposeCompleteMessage (iceConn, pStart);
2364
2363
        (*iceConn->ping_waits->ping_reply_proc) (iceConn,
2365
2364
            iceConn->ping_waits->client_data);
2366
2365
 
2367
 
        free ((char *) iceConn->ping_waits);
 
2366
        free (iceConn->ping_waits);
2368
2367
        iceConn->ping_waits = next;
2369
2368
    }
2370
2369
    else