Navigation



Ignore:
Timestamp:
Jul 27, 2010, 2:56:21 PM (14 years ago)
Author:
Alexandre Westfahl <awestfahl@freediameter.net>
Branch:
default
Phase:
public
Message:

Corrected compilation warnings on app_sip and test_sip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/serverassignment.c

    r427 r430  
    123123                                {
    124124                                        //We must check that this user can use this SIP-AOR
    125                                         ret=check_sipaor(usernamehdr->avp_value->os.data, usernamehdr->avp_value->os.len, sipaorhdr->avp_value->os.data,sipaorhdr->avp_value->os.len);
     125                                        ret=check_sipaor(usernamehdr->avp_value->os.data, usernamehdr->avp_value->os.len,(const char *) sipaorhdr->avp_value->os.data,sipaorhdr->avp_value->os.len);
    126126                                       
    127127                                        if(ret==0)
     
    203203                                       
    204204                                        CHECK_MALLOC(table_supporteddatatype[counter]=malloc(avphdr->avp_value->os.len+1));
    205                                         strncpy(table_supporteddatatype[counter],avphdr->avp_value->os.data,avphdr->avp_value->os.len);
     205                                        strncpy(table_supporteddatatype[counter],(const char *)avphdr->avp_value->os.data,avphdr->avp_value->os.len);
    206206                                        table_supporteddatatype[counter][avphdr->avp_value->os.len+1]='\0';
    207207                                       
Note: See TracChangeset for help on using the changeset viewer.