[PATCH] osmo-msc[master]: VLR: constify GSUP-related function parameters

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Wed Jan 24 12:55:32 UTC 2018


Review at  https://gerrit.osmocom.org/6016

VLR: constify GSUP-related function parameters

Change-Id: If3852e096210713cb5297f6b42ed66dbb98c4a50
---
M include/osmocom/msc/vlr.h
M src/libvlr/vlr.c
2 files changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/16/6016/1

diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h
index 0b61a59..9943f15 100644
--- a/include/osmocom/msc/vlr.h
+++ b/include/osmocom/msc/vlr.h
@@ -284,7 +284,7 @@
 int vlr_subscr_rx_auth_resp(struct vlr_subscr *vsub, bool is_r99, bool is_utran,
 			    const uint8_t *res, uint8_t res_len);
 int vlr_subscr_rx_auth_fail(struct vlr_subscr *vsub, const uint8_t *auts);
-int vlr_subscr_tx_auth_fail_rep(struct vlr_subscr *vsub);
+int vlr_subscr_tx_auth_fail_rep(const struct vlr_subscr *vsub);
 void vlr_subscr_rx_ciph_res(struct vlr_subscr *vsub, struct vlr_ciph_result *res);
 int vlr_subscr_rx_tmsi_reall_compl(struct vlr_subscr *vsub);
 int vlr_subscr_rx_imsi_detach(struct vlr_subscr *vsub);
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index f57df8e..21ef082 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -125,8 +125,8 @@
 }
 
 /* Transmit GSUP message to HLR */
-static int vlr_tx_gsup_message(struct vlr_instance *vlr,
-			       struct osmo_gsup_message *gsup_msg)
+static int vlr_tx_gsup_message(const struct vlr_instance *vlr,
+			       const struct osmo_gsup_message *gsup_msg)
 {
 	struct msgb *msg = gsup_client_msgb_alloc();
 
@@ -146,7 +146,7 @@
 }
 
 /* Transmit GSUP message for subscriber to HLR, using IMSI from subscriber */
-static int vlr_subscr_tx_gsup_message(struct vlr_subscr *vsub,
+static int vlr_subscr_tx_gsup_message(const struct vlr_subscr *vsub,
 				      struct osmo_gsup_message *gsup_msg)
 {
 	struct vlr_instance *vlr = vsub->vlr;
@@ -158,7 +158,7 @@
 }
 
 /* Transmit GSUP error in response to original message */
-static int vlr_tx_gsup_error_reply(struct vlr_instance *vlr,
+static int vlr_tx_gsup_error_reply(const struct vlr_instance *vlr,
 				   struct osmo_gsup_message *gsup_orig,
 				   enum gsm48_gmm_cause cause)
 {
@@ -561,7 +561,7 @@
 }
 
 /* Tell HLR that authentication failure occurred */
-int vlr_subscr_tx_auth_fail_rep(struct vlr_subscr *vsub)
+int vlr_subscr_tx_auth_fail_rep(const struct vlr_subscr *vsub)
 {
 	struct osmo_gsup_message gsup_msg = {0};
 

-- 
To view, visit https://gerrit.osmocom.org/6016
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3852e096210713cb5297f6b42ed66dbb98c4a50
Gerrit-PatchSet: 1
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list