Change in osmo-bsc[master]: [hopping] generate_cell_chan_list(): make some pointers const

laforge gerrit-no-reply at lists.osmocom.org
Wed Apr 7 16:27:34 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/23646 )

Change subject: [hopping] generate_cell_chan_list(): make some pointers const
......................................................................

[hopping] generate_cell_chan_list(): make some pointers const

Change-Id: Ied4ee60224d71567ec613942ba1c03088e9b02f3
---
M src/osmo-bsc/system_information.c
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/src/osmo-bsc/system_information.c b/src/osmo-bsc/system_information.c
index 5357d20..e2ac04d 100644
--- a/src/osmo-bsc/system_information.c
+++ b/src/osmo-bsc/system_information.c
@@ -577,8 +577,8 @@
 /* generate a cell channel list as per Section 10.5.2.1b of 04.08 */
 int generate_cell_chan_list(uint8_t *chan_list, struct gsm_bts *bts)
 {
-	struct gsm_bts_trx *trx;
 	struct bitvec *bv = &bts->si_common.cell_alloc;
+	const struct gsm_bts_trx *trx;
 
 	/* Zero-initialize the bit-vector */
 	memset(bv->data, 0, bv->data_len);
@@ -589,7 +589,7 @@
 		/* Always add the TRX's ARFCN */
 		bitvec_set_bit_pos(bv, trx->arfcn, 1);
 		for (i = 0; i < ARRAY_SIZE(trx->ts); i++) {
-			struct gsm_bts_trx_ts *ts = &trx->ts[i];
+			const struct gsm_bts_trx_ts *ts = &trx->ts[i];
 			/* Add any ARFCNs present in hopping channels */
 			for (j = 0; j < 1024; j++) {
 				if (bitvec_get_bit_pos(&ts->hopping.arfcns, j))

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ied4ee60224d71567ec613942ba1c03088e9b02f3
Gerrit-Change-Number: 23646
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210407/439b48ef/attachment.htm>


More information about the gerrit-log mailing list