Changeset 5501 for pjproject


Ignore:
Timestamp:
Dec 19, 2016 3:01:55 AM (3 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed various compile warnings.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_timestamp_posix.c

    r5482 r5501  
    166166#include <linux/android_alarm.h> 
    167167#include <fcntl.h> 
     168#include <time.h> 
    168169 
    169170#define NSEC_PER_SEC    1000000000 
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r5483 r5501  
    407407        } 
    408408#else 
     409        PJ_UNUSED_ARG(nid); 
     410        PJ_UNUSED_ARG(cname); 
    409411        openssl_curves_num = 0; 
    410412#endif 
     
    10231025            return GET_SSL_STATUS(ssock); 
    10241026    } 
     1027#else 
     1028    PJ_UNUSED_ARG(ssock); 
    10251029#endif 
    10261030 
     
    10451049            return GET_SSL_STATUS(ssock); 
    10461050    } 
     1051#else 
     1052    PJ_UNUSED_ARG(ssock); 
    10471053#endif 
    10481054 
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5441 r5501  
    12941294    prm.mediaIdx = media_idx; 
    12951295    prm.srtpUse  = srtp_opt->use; 
    1296     for (int i = 0; i < srtp_opt->crypto_count; i++) { 
     1296    for (unsigned i = 0; i < srtp_opt->crypto_count; i++) { 
    12971297        SrtpCrypto crypto; 
    12981298         
     
    13071307    srtp_opt->use = prm.srtpUse; 
    13081308    srtp_opt->crypto_count = prm.cryptos.size(); 
    1309     for (int i = 0; i < srtp_opt->crypto_count; i++) { 
     1309    for (unsigned i = 0; i < srtp_opt->crypto_count; i++) { 
    13101310        srtp_opt->crypto[i].key   = str2Pj(prm.cryptos[i].key); 
    13111311        srtp_opt->crypto[i].name  = str2Pj(prm.cryptos[i].name); 
    13121312        srtp_opt->crypto[i].flags = prm.cryptos[i].flags; 
    1313     }     
     1313    } 
    13141314} 
    13151315 
Note: See TracChangeset for help on using the changeset viewer.