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
Thu Jan 14 12:29:26 UTC 2021


fixeria has submitted this change. ( 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(-)

Approvals:
  osmith: Looks good to me, approved
  Jenkins Builder: Verified



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: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210114/64c30c89/attachment.htm>


More information about the gerrit-log mailing list