Ignore:
Timestamp:
Aug 25, 2015 8:45:46 AM (9 years ago)
Author:
nanang
Message:

Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c

    r4537 r5170  
    264264    // Poll if pending. 
    265265    while (send_pending || recv_pending) { 
    266         int rc; 
     266        int ret; 
    267267        pj_time_val timeout = { 5, 0 }; 
    268268 
    269269        TRACE_("poll..."); 
    270270#ifdef PJ_SYMBIAN 
    271         rc = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 
     271        ret = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 
    272272#else 
    273         rc = pj_ioqueue_poll(ioque, &timeout); 
     273        ret = pj_ioqueue_poll(ioque, &timeout); 
    274274#endif 
    275275 
    276         if (rc == 0) { 
     276        if (ret == 0) { 
    277277            PJ_LOG(1,(THIS_FILE, "...ERROR: timed out...")); 
    278278            status=-45; goto on_error; 
    279         } else if (rc < 0) { 
    280             app_perror("...ERROR in ioqueue_poll()", -rc); 
     279        } else if (ret < 0) { 
     280            app_perror("...ERROR in ioqueue_poll()", -ret); 
    281281            status=-50; goto on_error; 
    282282        } 
Note: See TracChangeset for help on using the changeset viewer.