Ignore:
Timestamp:
Apr 14, 2008 4:04:30 AM (16 years ago)
Author:
bennylp
Message:

Fixed miscellaneous compile warnings/errors when built with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath-test/sess_auth.c

    r1916 r1929  
    164164    PJ_UNUSED_ARG(unused); 
    165165 
     166    PJ_LOG(5,("", "    server thread started")); 
     167 
    166168    while (!server->quit) { 
    167169        pj_fd_set_t readset; 
     
    171173        PJ_FD_SET(server->sock, &readset); 
    172174 
    173         if (pj_sock_select(server->sock, &readset, NULL, NULL, &delay)==1 && 
     175        if (pj_sock_select(server->sock+1, &readset, NULL, NULL, &delay)==1 && 
    174176            PJ_FD_ISSET(server->sock, &readset))  
    175177        { 
     
    384386        PJ_FD_SET(client->sock, &readset); 
    385387 
    386         if (pj_sock_select(client->sock, &readset, NULL, NULL, &delay)==1 && 
     388        if (pj_sock_select(client->sock+1, &readset, NULL, NULL, &delay)==1 && 
    387389            PJ_FD_ISSET(client->sock, &readset))  
    388390        { 
     
    451453                           pj_bool_t dummy_mi, 
    452454 
    453                            pj_stun_status expected_error, 
    454                            pj_stun_status expected_code, 
     455                           pj_bool_t expected_error, 
     456                           pj_status_t expected_code, 
    455457                           const char *expected_realm, 
    456458                           const char *expected_nonce, 
     
    690692static int retransmit_check(void) 
    691693{ 
    692     if (server->recv_count != PJ_STUN_MAX_TRANSMIT_COUNT) 
     694 
     695    if (server->recv_count != PJ_STUN_MAX_TRANSMIT_COUNT) { 
     696        PJ_LOG(3,("", "    expecting %d retransmissions, got %d", 
     697                  PJ_STUN_MAX_TRANSMIT_COUNT, server->recv_count)); 
    693698        return -700; 
     699    } 
    694700    if (client->recv_count != 0) 
    695701        return -710; 
Note: See TracChangeset for help on using the changeset viewer.