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/pjnath/src/pjnath-test/stun.c

    r4910 r5170  
    693693            if (PJ_STUN_IS_REQUEST(msg->hdr.type)) { 
    694694                pj_stun_auth_cred cred; 
    695                 pj_status_t status; 
     695                pj_status_t status2; 
    696696 
    697697                pj_bzero(&cred, sizeof(cred)); 
     
    702702                cred.data.static_cred.nonce = pj_str(v->nonce); 
    703703 
    704                 status = pj_stun_authenticate_request(buf, (unsigned)len, msg,  
     704                status2 = pj_stun_authenticate_request(buf, (unsigned)len, msg,  
    705705                                                      &cred, pool, NULL, NULL); 
    706                 if (status != PJ_SUCCESS) { 
     706                if (status2 != PJ_SUCCESS) { 
    707707                    char errmsg[PJ_ERR_MSG_SIZE]; 
    708                     pj_strerror(status, errmsg, sizeof(errmsg)); 
     708                    pj_strerror(status2, errmsg, sizeof(errmsg)); 
    709709                    PJ_LOG(1,(THIS_FILE,  
    710710                              "    Request authentication failed: %s", 
     
    715715 
    716716            } else if (PJ_STUN_IS_RESPONSE(msg->hdr.type)) { 
    717                 pj_status_t status; 
    718                 status = pj_stun_authenticate_response(buf, (unsigned)len,  
     717                pj_status_t status2; 
     718                status2 = pj_stun_authenticate_response(buf, (unsigned)len,  
    719719                                                       msg, &key); 
    720                 if (status != PJ_SUCCESS) { 
     720                if (status2 != PJ_SUCCESS) { 
    721721                    char errmsg[PJ_ERR_MSG_SIZE]; 
    722                     pj_strerror(status, errmsg, sizeof(errmsg)); 
     722                    pj_strerror(status2, errmsg, sizeof(errmsg)); 
    723723                    PJ_LOG(1,(THIS_FILE,  
    724724                              "    Response authentication failed: %s", 
Note: See TracChangeset for help on using the changeset viewer.