Ignore:
Timestamp:
Jul 19, 2011 8:40:20 AM (13 years ago)
Author:
nanang
Message:

Re #1326:

  • Fixed compile warnings on vs2005
  • Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c

    r3553 r3666  
    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, 
     
    936936    struct write_operation *write_op; 
    937937    unsigned retry; 
     938    pj_bool_t restart_retry = PJ_FALSE; 
     939    pj_status_t status; 
     940    pj_ssize_t sent; 
     941 
     942    PJ_ASSERT_RETURN(key && op_key && data && length, PJ_EINVAL); 
     943    PJ_CHECK_STACK(); 
     944 
    938945#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
    939946            PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
    940     pj_bool_t restart_retry = PJ_FALSE; 
     947retry_on_restart: 
     948#else 
     949    PJ_UNUSED_ARG(restart_retry); 
    941950#endif 
    942     pj_status_t status; 
    943     pj_ssize_t sent; 
    944  
    945     PJ_ASSERT_RETURN(key && op_key && data && length, PJ_EINVAL); 
    946     PJ_CHECK_STACK(); 
    947  
    948 retry_on_restart: 
    949951    /* Check if key is closing. */ 
    950952    if (IS_CLOSING(key)) 
Note: See TracChangeset for help on using the changeset viewer.