Ignore:
Timestamp:
Aug 25, 2015 8:45:46 AM (9 years ago)
Author:
nanang
Message:

Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_dialog.c

    r4911 r5170  
    243243                                 pjsip_uri_get_uri(dlg->remote.info->uri); 
    244244        if (!pj_list_empty(&sip_uri->header_param)) { 
    245             pj_str_t tmp; 
     245            pj_str_t tmp2; 
    246246 
    247247            /* Remove all header param */ 
     
    249249 
    250250            /* Print URI */ 
    251             tmp.ptr = (char*) pj_pool_alloc(dlg->pool, 
     251            tmp2.ptr = (char*) pj_pool_alloc(dlg->pool, 
    252252                                            dlg->remote.info_str.slen); 
    253             tmp.slen = pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, 
    254                                        sip_uri, tmp.ptr, 
     253            tmp2.slen = pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, 
     254                                       sip_uri, tmp2.ptr, 
    255255                                       dlg->remote.info_str.slen); 
    256256 
    257             if (tmp.slen < 1) { 
     257            if (tmp2.slen < 1) { 
    258258                status = PJSIP_EURITOOLONG; 
    259259                goto on_error; 
     
    261261 
    262262            /* Assign remote.info_str */ 
    263             dlg->remote.info_str = tmp; 
     263            dlg->remote.info_str = tmp2; 
    264264        } 
    265265    } 
     
    392392     */ 
    393393    if (contact) { 
    394         pj_str_t tmp; 
    395  
    396         pj_strdup_with_null(dlg->pool, &tmp, contact); 
     394        pj_str_t tmp2; 
     395 
     396        pj_strdup_with_null(dlg->pool, &tmp2, contact); 
    397397        dlg->local.contact = (pjsip_contact_hdr*) 
    398                              pjsip_parse_hdr(dlg->pool, &HCONTACT, tmp.ptr, 
    399                                              tmp.slen, NULL); 
     398                             pjsip_parse_hdr(dlg->pool, &HCONTACT, tmp2.ptr, 
     399                                             tmp2.slen, NULL); 
    400400        if (!dlg->local.contact) { 
    401401            status = PJSIP_EINVALIDURI; 
Note: See TracChangeset for help on using the changeset viewer.