abis: Fix compiler warning and remove const from syntax

libosmo-abis doesn't make it easy to have these parameters
as const.. just declare it non-const in the api. We pass
a static string but we know it will not be modified.
This commit is contained in:
Holger Hans Peter Freyther 2014-11-10 12:02:45 +01:00
parent 8332e29c9f
commit 1cce69364d
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ enum {
};
void abis_init(struct gsm_bts *bts);
struct e1inp_line *abis_open(struct gsm_bts *bts, const char *dst_host,
const char *model_name);
struct e1inp_line *abis_open(struct gsm_bts *bts, char *dst_host,
char *model_name);
int abis_oml_sendmsg(struct msgb *msg);

View File

@ -209,8 +209,8 @@ void abis_init(struct gsm_bts *bts)
osmo_signal_register_handler(SS_L_INPUT, &inp_s_cbfn, bts);
}
struct e1inp_line *abis_open(struct gsm_bts *bts, const char *dst_host,
const char *model_name)
struct e1inp_line *abis_open(struct gsm_bts *bts, char *dst_host,
char *model_name)
{
struct e1inp_line *line;