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/serverassignment.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";
    57         size_t visitednetworklen=strlen(visitednetwork);
    58         int registrationtype = 2;
     56        // char *visitednetwork="Pink";
     57        //size_t visitednetworklen=strlen(visitednetwork);
     58        //int registrationtype = 2;
    5959        int data_already_available=0;
    6060        int assignment_type=0;
     
    100100        {
    101101                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Host, 0, &avp ) );
    102                 value.os.data=destination_host;
     102                value.os.data=(unsigned char *)destination_host;
    103103                value.os.len=destination_hostlen;
    104104                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    108108        {
    109109                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Realm, 0, &avp ) );
    110                 value.os.data=destination_realm;
     110                value.os.data=(unsigned char *)destination_realm;
    111111                value.os.len=destination_realmlen;
    112112                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    118118               
    119119                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    120                 value.os.data=sip_aor;
     120                value.os.data=(unsigned char *)sip_aor;
    121121                value.os.len=aor_len;
    122122                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    128128               
    129129                CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) );
    130                 value.os.data=username;
     130                value.os.data=(unsigned char *)username;
    131131                value.os.len=usernamelen;
    132132                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
Note: See TracChangeset for help on using the changeset viewer.