From 1cce69364dbbc5fd8ed6765063c84f415da7ce02 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 10 Nov 2014 12:02:45 +0100 Subject: 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. --- include/osmo-bts/abis.h | 4 ++-- src/common/abis.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osmo-bts/abis.h b/include/osmo-bts/abis.h index 8c055d71..62407ece 100644 --- a/include/osmo-bts/abis.h +++ b/include/osmo-bts/abis.h @@ -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); diff --git a/src/common/abis.c b/src/common/abis.c index d546a760..9eb49a08 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -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; -- cgit v1.2.3