Changeset 4426


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

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

Location:
pjproject/branches/1.x
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib-util/src/pjlib-util/stun_simple_client.c

    r3896 r4426  
    4646    unsigned srv_cnt; 
    4747    pj_sockaddr_in srv_addr[2]; 
    48     int i, j, send_cnt = 0, nfds; 
     48    int i, send_cnt = 0, nfds; 
    4949    pj_pool_t *pool; 
    5050    struct query_rec { 
     
    136136        /* Send messages to servers that has not given us response. */ 
    137137        for (i=0; i<sock_cnt && status==PJ_SUCCESS; ++i) { 
     138            unsigned j; 
    138139            for (j=0; j<srv_cnt && status==PJ_SUCCESS; ++j) { 
    139140                pjstun_msg_hdr *msg_hdr = (pjstun_msg_hdr*) out_msg; 
  • 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)) 
  • pjproject/branches/1.x/pjsip-apps/src/pjsystest/systest.c

    r4074 r4426  
    8989/*****************************************************************/ 
    9090 
     91#if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 
    9192PJ_INLINE(char *) add_path(const char *path, const char *fname) 
    9293{ 
     
    9596    return fpath; 
    9697} 
     98#else 
     99#   define add_path(path, fname) fname 
     100#endif 
    97101 
    98102static void exit_app(void) 
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c

    r4346 r4426  
    17341734    pjmedia_port *media_port; 
    17351735    pj_status_t status; 
     1736 
     1737    PJ_UNUSED_ARG(local_sdp); 
     1738    PJ_UNUSED_ARG(remote_sdp); 
    17361739     
    17371740    /* Optionally, application may modify other stream settings here 
Note: See TracChangeset for help on using the changeset viewer.