Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (17 years ago)
Author:
bennylp
Message:

HUGE changeset to make the rest of the libraries compile with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r1240 r1266  
    9898static int init_status_phrase() 
    9999{ 
    100     int i; 
     100    unsigned i; 
    101101    pj_str_t default_reason_phrase = { "Default status message", 22}; 
    102102 
     
    195195                                  pj_str_t *str) 
    196196{ 
    197     int i; 
     197    unsigned i; 
    198198    for (i=0; i<PJ_ARRAY_SIZE(method_names); ++i) { 
    199199        if (pj_memcmp(str->ptr, method_names[i]->ptr, str->slen)==0 ||  
     
    516516    } 
    517517 
    518     return (code>=100 && code<(sizeof(status_phrase)/sizeof(status_phrase[0]))) ?  
     518    return (code>=100 &&  
     519            code<(int)(sizeof(status_phrase)/sizeof(status_phrase[0]))) ?  
    519520        &status_phrase[code] : &status_phrase[0]; 
    520521} 
Note: See TracChangeset for help on using the changeset viewer.