Changeset 4000


Ignore:
Timestamp:
Mar 30, 2012 7:41:56 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1446): Fixed compile warnings on VS2005.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/sipecho.c

    r3754 r4000  
    419419    pjsip_dialog *dlg; 
    420420    pjsip_rdata_sdp_info *sdp_info; 
    421     pjmedia_sdp_session *answer; 
    422     pjsip_tx_data *tdata; 
    423     call_t *call; 
     421    pjmedia_sdp_session *answer = NULL; 
     422    pjsip_tx_data *tdata = NULL; 
     423    call_t *call = NULL; 
    424424    unsigned i; 
    425     unsigned options = 0; 
    426425    pj_status_t status; 
    427426 
     
    490489 
    491490    /* Generate Contact URI */ 
    492     if (pj_gethostip(AF, &hostaddr) != PJ_SUCCESS) { 
     491    status = pj_gethostip(AF, &hostaddr); 
     492    if (status != PJ_SUCCESS) { 
    493493        app_perror(THIS_FILE, "Unable to retrieve local host IP", status); 
    494494        return PJ_TRUE; 
     
    561561        pj_str_t local_uri; 
    562562        pjsip_dialog *dlg; 
    563         pjmedia_sdp_session *local_sdp; 
    564563        pj_status_t status; 
    565564        pjsip_tx_data *tdata; 
     
    613612               (app.enable_msg_logging? "Disable" : "Enable")); 
    614613 
    615         fgets(s, sizeof(s), stdin) != NULL; 
     614        if (fgets(s, sizeof(s), stdin) == NULL) 
     615            continue; 
     616 
    616617        if (s[0]=='q') 
    617618            break; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_aud.c

    r3999 r4000  
    570570    pjmedia_port *media_port; 
    571571    unsigned strm_idx = call_med->idx; 
    572     pj_status_t status; 
     572    pj_status_t status = PJ_SUCCESS; 
     573 
     574    PJ_UNUSED_ARG(tmp_pool); 
     575    PJ_UNUSED_ARG(local_sdp); 
     576    PJ_UNUSED_ARG(remote_sdp); 
    573577 
    574578    PJ_LOG(4,(THIS_FILE,"Audio channel update..")); 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r3982 r4000  
    702702    pjmedia_port *media_port; 
    703703    pj_status_t status; 
    704      
     704  
     705    PJ_UNUSED_ARG(tmp_pool); 
     706    PJ_UNUSED_ARG(local_sdp); 
     707    PJ_UNUSED_ARG(remote_sdp); 
     708 
    705709    PJ_LOG(4,(THIS_FILE, "Video channel update..")); 
    706710    pj_log_push_indent(); 
Note: See TracChangeset for help on using the changeset viewer.