Changeset 271


Ignore:
Timestamp:
Mar 2, 2006 9:26:09 PM (18 years ago)
Author:
bennylp
Message:

Fixed compilation warnings and errors in pjsip-perf

Location:
pjproject/trunk
Files:
5 edited

Legend:

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

    r233 r271  
    2222 
    2323static const char *id = "config.c"; 
    24 const char *PJ_VERSION = "0.5.2"; 
     24const char *PJ_VERSION = "0.5.3"; 
    2525 
    2626PJ_DEF(void) pj_dump_config(void) 
  • pjproject/trunk/pjmedia/src/pjmedia/sdp.c

    r199 r271  
    568568    m->desc.fmt_count = rhs->desc.fmt_count; 
    569569    for (i=0; i<rhs->desc.fmt_count; ++i) 
    570         m->desc.fmt[i] = rhs->desc.fmt[i]; 
     570        pj_strdup(pool, &m->desc.fmt[i], &rhs->desc.fmt[i]); 
    571571 
    572572    if (rhs->conn) { 
     
    679679    *p++ = '\n'; 
    680680 
     681    /* Connection line (c=) if exist. */ 
     682    if (ses->conn) { 
     683        printed = print_connection_info(ses->conn, p, end-p); 
     684        if (printed < 1) { 
     685            return -1; 
     686        } 
     687        p += printed; 
     688    } 
     689 
     690 
    681691    /* Time */ 
    682692    if ((end-p) < 24) { 
     
    692702    *p++ = '\r'; 
    693703    *p++ = '\n'; 
    694  
    695     /* Connection line (c=) if exist. */ 
    696     if (ses->conn) { 
    697         printed = print_connection_info(ses->conn, p, end-p); 
    698         if (printed < 1) { 
    699             return -1; 
    700         } 
    701         p += printed; 
    702     } 
    703704 
    704705    /* Print all attribute (a=) lines. */ 
  • pjproject/trunk/pjsip-apps/src/pjsip-perf/handler_call.c

    r254 r271  
    134134    status = pjsip_dlg_create_uas(pjsip_ua_instance(), rdata, NULL, &dlg); 
    135135    if (status != PJ_SUCCESS) { 
    136         pjsip_dlg_respond(dlg, rdata, 500, NULL); 
     136        pjsip_dlg_respond(dlg, rdata, 500, NULL, NULL, NULL); 
    137137        return PJ_TRUE; 
    138138    } 
     
    142142    if (status != PJ_SUCCESS) { 
    143143 
    144         pjsip_dlg_respond(dlg, rdata, 500, NULL); 
     144        pjsip_dlg_respond(dlg, rdata, 500, NULL, NULL, NULL); 
    145145 
    146146        // TODO: Need to delete dialog 
     
    161161        app_perror(THIS_FILE, "Unable to create 200 response", status); 
    162162 
    163         pjsip_dlg_respond(dlg, rdata, 500, NULL); 
     163        pjsip_dlg_respond(dlg, rdata, 500, NULL, NULL, NULL); 
    164164 
    165165        // TODO: Need to delete dialog 
     
    272272    pj_status_t status; 
    273273 
     274    PJ_UNUSED_ARG(ht); 
     275    PJ_UNUSED_ARG(e); 
     276 
    274277    e->id = 0; 
    275278 
     
    296299{ 
    297300    struct call_data *call_data; 
     301 
     302    PJ_UNUSED_ARG(e); 
    298303 
    299304    call_data = inv->mod_data[mod_call.id]; 
  • pjproject/trunk/pjsip-apps/src/pjsip-perf/handler_options.c

    r259 r271  
    116116    PJ_LOG(5,(THIS_FILE,"Sending OPTIONS request..")); 
    117117 
     118    PJ_UNUSED_ARG(route_set); 
     119    PJ_UNUSED_ARG(cred_cnt); 
     120    PJ_UNUSED_ARG(cred); 
     121 
    118122    status = pjsip_endpt_create_request( settings.endpt,  
    119123                                         &pjsip_options_method, 
  • pjproject/trunk/pjsip-apps/src/pjsip-perf/main.c

    r262 r271  
    597597    unsigned i; 
    598598 
     599    PJ_UNUSED_ARG(timer_heap); 
     600    PJ_UNUSED_ARG(entry); 
     601 
    599602    if (!pj_list_empty(&sess->free_list)) { 
    600603        batch = sess->free_list.next; 
Note: See TracChangeset for help on using the changeset viewer.