Changeset 2385 for pjproject


Ignore:
Timestamp:
Dec 18, 2008 4:48:43 PM (16 years ago)
Author:
bennylp
Message:

Fixed minor gcc compilation warnings

Location:
pjproject/trunk
Files:
6 edited

Legend:

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

    r2298 r2385  
    627627#if !PLC_DISABLED 
    628628    if (g722_data->plc_enabled) 
    629         pjmedia_plc_save(g722_data->plc, output->buf); 
     629        pjmedia_plc_save(g722_data->plc, (pj_int16_t*)output->buf); 
    630630#endif 
    631631 
     
    643643                                       struct pjmedia_frame *output) 
    644644{ 
    645     struct g722_data *g722_data = codec->codec_data; 
     645    struct g722_data *g722_data = (struct g722_data*)codec->codec_data; 
    646646 
    647647    PJ_ASSERT_RETURN(g722_data->plc_enabled, PJ_EINVALIDOP); 
     
    650650                     PJMEDIA_CODEC_EPCMTOOSHORT); 
    651651 
    652     pjmedia_plc_generate(g722_data->plc, output->buf); 
     652    pjmedia_plc_generate(g722_data->plc, (pj_int16_t*)output->buf); 
    653653 
    654654    output->size = SAMPLES_PER_FRAME * 2; 
  • pjproject/trunk/pjmedia/src/pjmedia/echo_suppress.c

    r2329 r2385  
    122122    ST_DOUBLETALK, 
    123123    ST_REM_TALK 
    124 } talk_state; 
     124} talk_state_t; 
    125125 
    126126const char *state_names[] =  
     
    226226 
    227227    pj_bool_t    learning;          /* Are we still learning yet?           */ 
    228     talk_state  talk_state;        /* Current talking state                */ 
     228    talk_state_t talk_state;        /* Current talking state                */ 
    229229    int          tail_index;        /* Echo location, -1 if not found       */ 
    230230 
     
    392392 
    393393/* Set state */ 
    394 static void echo_supp_set_state(echo_supp *ec, enum talk_state state,  
     394static void echo_supp_set_state(echo_supp *ec, talk_state_t state,  
    395395                                unsigned level) 
    396396{ 
  • pjproject/trunk/pjmedia/src/test/main.c

    r2344 r2385  
    4444    return rc; 
    4545} 
    46   
     46 
     47 
  • pjproject/trunk/pjmedia/src/test/mips_test.c

    r2212 r2385  
    420420        unsigned c; 
    421421 
    422         buf = pj_pool_alloc(pool, sizeof(ref_signal)*channel_count); 
     422        buf = (pj_int16_t*) 
     423              pj_pool_alloc(pool, sizeof(ref_signal)*channel_count); 
    423424        for (c=0; c<channel_count; ++c) { 
    424425            unsigned i; 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r2380 r2385  
    20692069 
    20702070            /* Set target */ 
    2071             tdata->msg->line.req.uri =  
     2071            tdata->msg->line.req.uri = (pjsip_uri*) 
    20722072               pjsip_uri_clone(tdata->pool, inv->dlg->target_set.current->uri); 
    20732073 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r2379 r2385  
    138138                                          pjsua_buddy_info *info) 
    139139{ 
    140     int total=0; 
     140    unsigned total=0; 
    141141    pjsua_buddy *buddy; 
    142142 
Note: See TracChangeset for help on using the changeset viewer.