Change in osmo-bts[master]: common/sysinfo: make struct gsm_bts_trx const in num_agch()

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
Sat May 8 15:41:29 UTC 2021


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


Change subject: common/sysinfo: make struct gsm_bts_trx const in num_agch()
......................................................................

common/sysinfo: make struct gsm_bts_trx const in num_agch()

Change-Id: I776defc7e9699a378c9a03304c63e15d023476d0
---
M include/osmo-bts/bts_trx.h
M src/common/sysinfo.c
2 files changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/75/24175/1

diff --git a/include/osmo-bts/bts_trx.h b/include/osmo-bts/bts_trx.h
index 8513a12..7d60a73 100644
--- a/include/osmo-bts/bts_trx.h
+++ b/include/osmo-bts/bts_trx.h
@@ -56,7 +56,7 @@
 int trx_link_estab(struct gsm_bts_trx *trx);
 void trx_operability_update(struct gsm_bts_trx *trx);
 
-uint8_t num_agch(struct gsm_bts_trx *trx, const char * arg);
+uint8_t num_agch(const struct gsm_bts_trx *trx, const char * arg);
 bool trx_ms_pwr_ctrl_is_osmo(const struct gsm_bts_trx *trx);
 
 #define LOGPTRX(trx, ss, lvl, fmt, args...) LOGP(ss, lvl, "%s " fmt, gsm_trx_name(trx), ## args)
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index d1f6f36..5c5af25 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -151,10 +151,10 @@
 	return 0;
 }
 
-uint8_t num_agch(struct gsm_bts_trx *trx, const char * arg)
+uint8_t num_agch(const struct gsm_bts_trx *trx, const char * arg)
 {
-	struct gsm_bts *b = trx->bts;
-	struct gsm48_system_information_type_3 *si3;
+	const struct gsm_bts *b = trx->bts;
+	const struct gsm48_system_information_type_3 *si3;
 	if (GSM_BTS_HAS_SI(b, SYSINFO_TYPE_3)) {
 		si3 = GSM_BTS_SI(b, SYSINFO_TYPE_3);
 		return si3->control_channel_desc.bs_ag_blks_res;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I776defc7e9699a378c9a03304c63e15d023476d0
Gerrit-Change-Number: 24175
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/20210508/78985086/attachment.htm>


More information about the gerrit-log mailing list