Changeset 4105


Ignore:
Timestamp:
Apr 26, 2012 11:45:09 PM (8 years ago)
Author:
bennylp
Message:

Misc (re #1417): fixed compilation warnings about missing return value in pjlib echo server test application

Location:
pjproject/branches/1.x/pjlib/src/pjlib-test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c

    r3553 r4105  
    2323static pj_ioqueue_key_t *key; 
    2424static pj_atomic_t *total_bytes; 
     25static pj_bool_t thread_quit_flag; 
    2526 
    2627struct op_key 
     
    146147    } 
    147148     
    148     for (;;) { 
     149    while (!thread_quit_flag) { 
    149150        pj_time_val timeout; 
    150151        timeout.sec = 0; timeout.msec = 10; 
    151152        rc = pj_ioqueue_poll(ioqueue, &timeout); 
    152153    } 
    153     PJ_UNREACHED(return 0;) 
     154    return 0; 
    154155} 
    155156 
  • pjproject/branches/1.x/pjlib/src/pjlib-test/udp_echo_srv_sync.c

    r3553 r4105  
    2222 
    2323static pj_atomic_t *total_bytes; 
     24static pj_bool_t thread_quit_flag = 0; 
    2425 
    2526static int worker_thread(void *arg) 
     
    2930    pj_status_t  last_recv_err = PJ_SUCCESS, last_write_err = PJ_SUCCESS; 
    3031 
    31     for (;;) { 
     32    while (!thread_quit_flag) { 
    3233        pj_ssize_t len; 
    3334        pj_status_t rc; 
     
    5758        } 
    5859    } 
    59     PJ_UNREACHED(return 0;) 
     60    return 0; 
    6061} 
    6162 
Note: See TracChangeset for help on using the changeset viewer.