Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (8 years ago)
Author:
muemart
Message:

Fix some clang-tidy warnings.
Also, Serialise.h was doing some C-style casts that ended up being const casts. I moved those const casts as close to the source as possible and changed the loadAndIncrease functions to not do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/MasterServer.cc

    r11071 r11083  
    253253    /* convert to string */
    254254    std::string ip = std::string( addrconv );
     255    /* output debug info about the data that has come */
     256    helper_output_debug(event, addrconv);
    255257    /* delete addrconv */
    256258    if( addrconv ) free( addrconv );
     
    259261    char * packetdata = (char *)event->packet->data;
    260262
    261     /* output debug info about the data that has come */
    262     helper_output_debug( event, addrconv );
    263263
    264264    /* GAME SERVER OR CLIENT CONNECTION? */
     
    332332  {
    333333    /***** ENTER MAIN LOOP *****/
    334     ENetEvent *event = (ENetEvent *)calloc(sizeof(ENetEvent), sizeof(char));
     334    ENetEvent *event = (ENetEvent *)calloc(1, sizeof(ENetEvent));
    335335    if( event == nullptr )
    336336    {
Note: See TracChangeset for help on using the changeset viewer.