aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-18 12:28:09 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-18 13:52:09 +0100
commitfd96d450494676b08da0f264ad3233ac6ad27989 (patch)
tree2eb9a2b031c4279cd24a4dacf7d5a6fadeacafb8
parent977b5486b13834f31bd3510ab03f8a50369bbbdd (diff)
a_iface: use 'const' qualifier for ran_conn whenever possible
-rw-r--r--include/osmocom/msc/a_iface.h2
-rw-r--r--src/libmsc/a_iface.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/msc/a_iface.h b/include/osmocom/msc/a_iface.h
index 2d11cca..d8a8aab 100644
--- a/include/osmocom/msc/a_iface.h
+++ b/include/osmocom/msc/a_iface.h
@@ -68,7 +68,7 @@ int a_iface_tx_paging(const char *imsi, uint32_t tmsi, uint16_t lac);
int a_iface_tx_assignment(const struct gsm_trans *trans);
/* Send clear command via A-interface */
-int a_iface_tx_clear_cmd(struct ran_conn *conn);
+int a_iface_tx_clear_cmd(const struct ran_conn *conn);
int a_iface_tx_classmark_request(const struct ran_conn *conn);
diff --git a/src/libmsc/a_iface.c b/src/libmsc/a_iface.c
index 26274d8..2c38189 100644
--- a/src/libmsc/a_iface.c
+++ b/src/libmsc/a_iface.c
@@ -154,7 +154,7 @@ static int a_iface_tx_bssap(const struct ran_conn *conn, struct msgb *msg)
/* Send DTAP message via A-interface, take ownership of msg */
int a_iface_tx_dtap(struct msgb *msg)
{
- struct ran_conn *conn;
+ const struct ran_conn *conn;
struct msgb *msg_resp;
uint8_t link_id = OMSC_LINKID_CB(msg);
@@ -366,7 +366,7 @@ static int enc_speech_codec_list(struct gsm0808_speech_codec_list *scl, const st
/* Send assignment request via A-interface */
int a_iface_tx_assignment(const struct gsm_trans *trans)
{
- struct ran_conn *conn;
+ const struct ran_conn *conn;
struct gsm0808_channel_type ct;
struct gsm0808_speech_codec_list scl;
struct msgb *msg;
@@ -417,7 +417,7 @@ int a_iface_tx_assignment(const struct gsm_trans *trans)
}
/* Send clear command via A-interface */
-int a_iface_tx_clear_cmd(struct ran_conn *conn)
+int a_iface_tx_clear_cmd(const struct ran_conn *conn)
{
struct msgb *msg;
struct vlr_subscr *vsub = conn->vsub;