Changeset 3262


Ignore:
Timestamp:
Aug 11, 2010 6:03:47 AM (9 years ago)
Author:
bennylp
Message:

Misc (re #1068): fixed various compilation warnings with Visual Studio 6 and 2005

Location:
pjproject/trunk
Files:
5 edited

Legend:

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

    r3257 r3262  
    6666    struct server_t *srv = (struct server_t*)p; 
    6767    char *pkt = (char*)pj_pool_alloc(pool, srv->buf_size); 
    68     pj_sock_t newsock; 
     68    pj_sock_t newsock = PJ_INVALID_SOCKET; 
    6969 
    7070    while (!thread_quit) { 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c

    r3174 r3262  
    453453            for (j = drv->start_idx; j < drv->start_idx + drv->dev_cnt; j++) 
    454454            { 
    455                 aud_subsys.dev_list[j] = PJMEDIA_AUD_INVALID_DEV; 
     455                aud_subsys.dev_list[j] = (pj_uint32_t)PJMEDIA_AUD_INVALID_DEV; 
    456456            } 
    457457 
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r3212 r3262  
    269269         * move it temporarily to something else. 
    270270         */ 
    271         if (comp->default_cand == cand - comp->cand_list) { 
     271        if ((int)comp->default_cand == cand - comp->cand_list) { 
    272272            /* Init to something */ 
    273273            comp->default_cand = 0; 
  • pjproject/trunk/pjsip-apps/src/pjsystest/main_wm.c

    r2836 r3262  
    238238    if (!RegisterClass(&wc) != 0) { 
    239239        DWORD err = GetLastError(); 
    240         return -1; 
     240        return PJ_RETURN_OS_ERROR(err); 
    241241    } 
    242242 
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r3203 r3262  
    18621862                                   const pjsip_transport_state_info *info) 
    18631863{ 
     1864    PJ_UNUSED_ARG(tp); 
     1865 
    18641866    if (state == PJSIP_TP_STATE_DISCONNECTED) { 
    18651867        pjsip_transaction *tsx; 
Note: See TracChangeset for help on using the changeset viewer.