Change in osmo-bsc[master]: vty: use 'const' for *nsvc in config_write_bts_gprs()

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

fixeria gerrit-no-reply at lists.osmocom.org
Wed Jan 13 22:31:26 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/22163 )


Change subject: vty: use 'const' for *nsvc in config_write_bts_gprs()
......................................................................

vty: use 'const' for *nsvc in config_write_bts_gprs()

Change-Id: I869944cc692c7954b2862ecff32c6034d20babef
---
M src/osmo-bsc/bsc_vty.c
1 file changed, 1 insertion(+), 2 deletions(-)



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

diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index 400e1a6..91acb03 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -771,8 +771,7 @@
 			get_value_string(gprs_ns_timer_strs, i),
 			bts_sm->gprs.nse.timer[i], VTY_NEWLINE);
 	for (i = 0; i < ARRAY_SIZE(bts_sm->gprs.nsvc); i++) {
-		struct gsm_gprs_nsvc *nsvc =
-					&bts_sm->gprs.nsvc[i];
+		const struct gsm_gprs_nsvc *nsvc = &bts_sm->gprs.nsvc[i];
 		struct osmo_sockaddr_str remote = {};
 		uint16_t port;
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/22163
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I869944cc692c7954b2862ecff32c6034d20babef
Gerrit-Change-Number: 22163
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210113/9e5db8e3/attachment.htm>


More information about the gerrit-log mailing list