Changeset 5860 for pjproject


Ignore:
Timestamp:
Aug 16, 2018 2:39:36 AM (15 months ago)
Author:
nanang
Message:

Re #2096: Fixed some compile warnings.

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r5857 r5860  
    10561056        PJ_LOG(4, (srtp->pool->obj_name, 
    10571057                   "SRTP started, keying=%s, crypto=%s", 
    1058                    (srtp->keying[0]->type==PJMEDIA_SRTP_KEYING_SDES? 
     1058                   ((int)srtp->keying[0]->type==PJMEDIA_SRTP_KEYING_SDES? 
    10591059                    "SDES":"DTLS-SRTP"), 
    10601060                   srtp->tx_policy.name.ptr)); 
     
    16521652        pj_assert(srtp->keying_cnt == 1); 
    16531653        PJ_LOG(4, (srtp->pool->obj_name, "SRTP uses keying method %s", 
    1654                    (srtp->keying[0]->type==PJMEDIA_SRTP_KEYING_SDES? 
     1654                   ((int)srtp->keying[0]->type==PJMEDIA_SRTP_KEYING_SDES? 
    16551655                    "SDES":"DTLS-SRTP"))); 
    16561656    } 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_dtls.c

    r5855 r5860  
    190190 
    191191    pj_ansi_strncpy(ds->base.name, pool->obj_name, PJ_MAX_OBJ_NAME); 
    192     ds->base.type = PJMEDIA_SRTP_KEYING_DTLS_SRTP; 
     192    ds->base.type = (pjmedia_transport_type)PJMEDIA_SRTP_KEYING_DTLS_SRTP; 
    193193    ds->base.op = &dtls_op; 
    194194    ds->base.user_data = srtp; 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_sdes.c

    r5855 r5860  
    7979    pj_ansi_strncpy(sdes->name, srtp->pool->obj_name, PJ_MAX_OBJ_NAME); 
    8080    pj_memcpy(sdes->name, "sdes", 4); 
    81     sdes->type = PJMEDIA_SRTP_KEYING_SDES; 
     81    sdes->type = (pjmedia_transport_type)PJMEDIA_SRTP_KEYING_SDES; 
    8282    sdes->op = &sdes_op; 
    8383    sdes->user_data = srtp; 
Note: See TracChangeset for help on using the changeset viewer.