Ignore:
Timestamp:
Mar 7, 2013 5:08:10 AM (8 years ago)
Author:
riza
Message:

Misc (re #1634): fixed compile errors/warnings on MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/src/pj/ioqueue_common_abs.c

    r3553 r4426  
    284284        struct write_operation *write_op; 
    285285        pj_ssize_t sent; 
    286         pj_status_t send_rc; 
     286        pj_status_t send_rc = PJ_SUCCESS; 
    287287 
    288288        /* Get the first in the queue. */ 
     
    313313            //write_op->op = 0; 
    314314        } else if (write_op->op == PJ_IOQUEUE_OP_SEND_TO) { 
    315             int retry; 
    316             for (retry=0; retry<2; ++retry) { 
     315            int retry = 2; 
     316            while (--retry >= 0) { 
    317317                send_rc = pj_sock_sendto(h->fd,  
    318318                                         write_op->buf+write_op->written, 
     
    946946    PJ_CHECK_STACK(); 
    947947 
     948#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
     949            PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
    948950retry_on_restart: 
     951#endif 
     952 
    949953    /* Check if key is closing. */ 
    950954    if (IS_CLOSING(key)) 
Note: See TracChangeset for help on using the changeset viewer.