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/test_sip/userauthorization.c

    r427 r430  
    4646       
    4747        //Fake values START
    48         unsigned char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
     48        char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
    4949        size_t aor_len=strlen(sip_aor);
    50         unsigned char *destination_realm="tera.ics.keio.ac.jp";
     50        char *destination_realm="tera.ics.keio.ac.jp";
    5151        size_t destination_realmlen=strlen(destination_realm);
    52         unsigned char *destination_host="suika.tera.ics.keio.ac.jp";
     52        char *destination_host="suika.tera.ics.keio.ac.jp";
    5353        size_t destination_hostlen=strlen(destination_host);
    54         unsigned char *username="aw-lappy";
     54        char *username="aw-lappy";
    5555        size_t usernamelen=strlen(username);
    56         unsigned char *visitednetwork="Pink";
     56        char *visitednetwork="Pink";
    5757        size_t visitednetworklen=strlen(visitednetwork);
    5858        int registrationtype = 2;
     
    9999        {
    100100                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Host, 0, &avp ) );
    101                 value.os.data=destination_host;
     101                value.os.data=(unsigned char *)destination_host;
    102102                value.os.len=destination_hostlen;
    103103                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    107107        {
    108108                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Realm, 0, &avp ) );
    109                 value.os.data=destination_realm;
     109                value.os.data=(unsigned char *)destination_realm;
    110110                value.os.len=destination_realmlen;
    111111                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    117117               
    118118                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    119                 value.os.data=sip_aor;
     119                value.os.data=(unsigned char *)sip_aor;
    120120                value.os.len=aor_len;
    121121                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    127127               
    128128                CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) );
    129                 value.os.data=username;
     129                value.os.data=(unsigned char *)username;
    130130                value.os.len=usernamelen;
    131131                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    137137               
    138138                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_Visited_Network_Id, 0, &avp ) );
    139                 value.os.data=visitednetwork;
     139                value.os.data=(unsigned char *)visitednetwork;
    140140                value.os.len=visitednetworklen;
    141141                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
Note: See TracChangeset for help on using the changeset viewer.