Change in osmo-bsc[master]: abis_rsl: {rep, top}_acch_cap_for_bts(): make *lchan const

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
Mon Nov 15 11:59:08 UTC 2021


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

Change subject: abis_rsl: {rep,top}_acch_cap_for_bts(): make *lchan const
......................................................................

abis_rsl: {rep,top}_acch_cap_for_bts(): make *lchan const

Change-Id: I3e71bb88db7b1eadff5a73fdb98fe7eee2fc2540
---
M src/osmo-bsc/abis_rsl.c
1 file changed, 4 insertions(+), 4 deletions(-)

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



diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c
index 90ceec1..6760e94 100644
--- a/src/osmo-bsc/abis_rsl.c
+++ b/src/osmo-bsc/abis_rsl.c
@@ -526,11 +526,11 @@
 
 /* indicate FACCH/SACCH Repetition to be performed by BTS,
  * see also: 3GPP TS 44.006, section 10 and 11 */
-static void rep_acch_cap_for_bts(struct gsm_lchan *lchan,
+static void rep_acch_cap_for_bts(const struct gsm_lchan *lchan,
 				 struct msgb *msg)
 {
 	struct abis_rsl_osmo_rep_acch_cap *cap;
-	struct gsm_bts *bts = lchan->ts->trx->bts;
+	const struct gsm_bts *bts = lchan->ts->trx->bts;
 
 	/* The RSL_IE_OSMO_REP_ACCH_CAP IE is a proprietary IE, that can only
 	 * be used with osmo-bts type BTSs */
@@ -554,9 +554,9 @@
 }
 
 /* indicate Temporary overpower of SACCH and FACCH channels */
-static void top_acch_cap_for_bts(struct gsm_lchan *lchan, struct msgb *msg)
+static void top_acch_cap_for_bts(const struct gsm_lchan *lchan, struct msgb *msg)
 {
-	struct gsm_bts *bts = lchan->ts->trx->bts;
+	const struct gsm_bts *bts = lchan->ts->trx->bts;
 
 	/* The BTS_FEAT_ACCH_TEMP_OVP IE is a proprietary IE, that can only be used with osmo-bts type BTSs */
 	if (!(bts->model->type == GSM_BTS_TYPE_OSMOBTS && osmo_bts_has_feature(&bts->features, BTS_FEAT_ACCH_TEMP_OVP)))

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I3e71bb88db7b1eadff5a73fdb98fe7eee2fc2540
Gerrit-Change-Number: 26240
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
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/20211115/13861c2f/attachment.htm>


More information about the gerrit-log mailing list