Changeset 2015 for pjproject


Ignore:
Timestamp:
Jun 13, 2008 12:52:56 PM (16 years ago)
Author:
bennylp
Message:

Fixed various compilation warnings with gcc strict compilation

Location:
pjproject/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c

    r1985 r2015  
    598598#if !PLC_DISABLED 
    599599    if (gsm_data->plc_enabled) 
    600         pjmedia_plc_save( gsm_data->plc, output->buf); 
     600        pjmedia_plc_save( gsm_data->plc, (pj_int16_t*)output->buf); 
    601601#endif 
    602602 
     
    613613                                      struct pjmedia_frame *output) 
    614614{ 
    615     struct gsm_data *gsm_data = codec->codec_data; 
     615    struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 
    616616 
    617617    PJ_ASSERT_RETURN(gsm_data->plc_enabled, PJ_EINVALIDOP); 
     
    619619    PJ_ASSERT_RETURN(output_buf_len >= 320, PJMEDIA_CODEC_EPCMTOOSHORT); 
    620620 
    621     pjmedia_plc_generate(gsm_data->plc, output->buf); 
     621    pjmedia_plc_generate(gsm_data->plc, (pj_int16_t*)output->buf); 
    622622    output->size = 320; 
    623623 
  • pjproject/trunk/pjmedia/src/pjmedia/resample_port.c

    r1955 r2015  
    189189        frame->size = tmp_frame.size < rport->base.info.bytes_per_frame ? 
    190190                      tmp_frame.size : rport->base.info.bytes_per_frame; 
    191         if (tmp_frame.size) 
    192             pjmedia_copy_samples(frame->buf, tmp_frame.buf, frame->size >> 1); 
     191        if (tmp_frame.size) { 
     192            pjmedia_copy_samples((pj_int16_t*)frame->buf,  
     193                                 (const pj_int16_t*)tmp_frame.buf,  
     194                                 frame->size >> 1); 
     195        } 
    193196        return PJ_SUCCESS; 
    194197    } 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r2011 r2015  
    11871187    pjmedia_sdp_media *m_rem, *m_loc; 
    11881188    pj_status_t status; 
    1189     int i; 
     1189    unsigned i; 
    11901190 
    11911191    PJ_ASSERT_RETURN(tp && pool && sdp_local && sdp_remote, PJ_EINVAL); 
  • pjproject/trunk/pjnath/src/pjnath-test/server.c

    r1988 r2015  
    630630 
    631631    pj_sockaddr_cp(&pa->sockaddr, src_addr); 
    632     da->data = data; 
     632    da->data = (pj_uint8_t*)data; 
    633633    da->length = size; 
    634634 
  • pjproject/trunk/pjnath/src/pjnath-test/stun_sock_test.c

    r1988 r2015  
    5353    pj_ssize_t sent; 
    5454 
    55     srv = pj_activesock_get_user_data(asock); 
     55    srv = (struct stun_srv*) pj_activesock_get_user_data(asock); 
    5656 
    5757    /* Ignore error */ 
     
    195195    struct stun_client *client; 
    196196 
    197     client = pj_stun_sock_get_user_data(stun_sock); 
     197    client = (struct stun_client*) pj_stun_sock_get_user_data(stun_sock); 
    198198    client->on_status_cnt++; 
    199199    client->last_op = op; 
     
    222222    PJ_UNUSED_ARG(addr_len); 
    223223 
    224     client = pj_stun_sock_get_user_data(stun_sock); 
     224    client = (struct stun_client*) pj_stun_sock_get_user_data(stun_sock); 
    225225    client->on_rx_data_cnt++; 
    226226 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r1992 r2015  
    309309            pj_create_unique_string(regc->pool, &xuid_param->value); 
    310310 
    311             sip_uri = pjsip_uri_get_uri(hdr->uri); 
     311            sip_uri = (pjsip_sip_uri*) pjsip_uri_get_uri(hdr->uri); 
    312312            pj_list_push_back(&sip_uri->other_param, xuid_param); 
    313313        } 
Note: See TracChangeset for help on using the changeset viewer.