diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-10 12:02:45 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-10 12:02:45 +0100 |
commit | 1cce69364dbbc5fd8ed6765063c84f415da7ce02 (patch) | |
tree | d64127f9cd4a7493ca28adab745c125f2586093a | |
parent | 8332e29c9f3f97cbe22f83673cac4e68c57959f1 (diff) |
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.
-rw-r--r-- | include/osmo-bts/abis.h | 4 | ||||
-rw-r--r-- | 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; |