Changeset 210

Show
Ignore:
Timestamp:
03/26/09 13:01:23 (15 years ago)
Author:
bhilburn
Message:

Transitioning to C++ dynamic memory calls rather than C calls.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/shell/CognitiveRadioShell.cpp

    r209 r210  
    6262    radio_info = new Radio_Info; 
    6363 
    64     LoadRadioConfiguration(radioConfig,p,u,o,radio_info); 
     64    LoadRadioConfiguration(radioConfig, p, u, o, radio_info); 
    6565 
    6666    primaryPort = p1; 
     
    391391CognitiveRadioShell::StartShellServer() 
    392392{ 
    393     int32_t * servSock; 
    394393    struct timeval selTimeout; 
    395394    int32_t primary = 0; 
     
    402401    fd_set sockSet; 
    403402 
    404     servSock = (int32_t *) malloc(3 * sizeof(int32_t)); 
     403    int32_t *servSock = new int32_t[3]; 
    405404 
    406405    servSock[primary] = CreateTCPServerSocket(primaryPort); 
     
    479478 
    480479    /* Free list of sockets */ 
    481     free(servSock);   
     480    delete servSock; 
    482481 
    483482    return;