Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (14 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_transport.c

    r1248 r1266  
    9898 * Transport names. 
    9999 */ 
    100 struct 
     100struct transport_names_t 
    101101{ 
    102102    pjsip_transport_type_e type; 
     
    217217 
    218218    /* Check that argument is valid. */ 
    219     PJ_ASSERT_RETURN(type < PJ_ARRAY_SIZE(transport_names), 0); 
     219    PJ_ASSERT_RETURN((unsigned)type < PJ_ARRAY_SIZE(transport_names), 0); 
    220220 
    221221    /* Return transport flag. */ 
     
    236236 
    237237    /* Check that argument is valid. */ 
    238     PJ_ASSERT_RETURN(type < PJ_ARRAY_SIZE(transport_names), 5060); 
     238    PJ_ASSERT_RETURN((unsigned)type < PJ_ARRAY_SIZE(transport_names), 5060); 
    239239 
    240240    /* Return the port. */ 
     
    254254 
    255255    /* Check that argument is valid. */ 
    256     PJ_ASSERT_RETURN(type < PJ_ARRAY_SIZE(transport_names), "Unknown"); 
     256    PJ_ASSERT_RETURN((unsigned)type<PJ_ARRAY_SIZE(transport_names), "Unknown"); 
    257257 
    258258    /* Return the port. */ 
     
    415415    } 
    416416 
    417     if (len < 1 || len >= sizeof(info_buf)) { 
     417    if (len < 1 || len >= (int)sizeof(info_buf)) { 
    418418        return (char*)obj_name; 
    419419    } 
Note: See TracChangeset for help on using the changeset viewer.