Change in osmo-msc[master]: vlr: use unused is_ps parameter in vlr_subscr_req_lu()

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/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Nov 1 10:53:05 UTC 2018


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/11563


Change subject: vlr: use unused is_ps parameter in vlr_subscr_req_lu()
......................................................................

vlr: use unused is_ps parameter in vlr_subscr_req_lu()

the function vlr_subscr_req_lu() has a parameter is_ps, which is set to
vsub->vlr->cfg.is_ps by the only caller in vlr_lu_fsm.c. Inside the
function one can see that vsub->vlr->cfg.is_ps is used directly to
decide between PS or CS LU, we could also use is_ps there. Presumably
the parameter is_ps was intruduced later but changing the function body
has been forgotten. Lets update the function body accordingly.

Change-Id: Idfc925f2cb254d192e86568958b5ecb68fac09da
---
M src/libvlr/vlr.c
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index f7572f2..2409920 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -622,7 +622,7 @@
 	int rc;
 
 	gsup_msg.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST;
-	gsup_msg.cn_domain = vsub->vlr->cfg.is_ps ? OSMO_GSUP_CN_DOMAIN_PS : OSMO_GSUP_CN_DOMAIN_CS;
+	gsup_msg.cn_domain = is_ps ? OSMO_GSUP_CN_DOMAIN_PS : OSMO_GSUP_CN_DOMAIN_CS;
 	rc = vlr_subscr_tx_gsup_message(vsub, &gsup_msg);
 
 	return rc;

-- 
To view, visit https://gerrit.osmocom.org/11563
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idfc925f2cb254d192e86568958b5ecb68fac09da
Gerrit-Change-Number: 11563
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181101/00c3943b/attachment.htm>


More information about the gerrit-log mailing list