Change in osmo-bts[master]: common: constify the argument of trx_ms_pwr_ctrl_is_osmo()

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
Sun Aug 2 19:50:04 UTC 2020


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


Change subject: common: constify the argument of trx_ms_pwr_ctrl_is_osmo()
......................................................................

common: constify the argument of trx_ms_pwr_ctrl_is_osmo()

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



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

diff --git a/include/osmo-bts/bts_trx.h b/include/osmo-bts/bts_trx.h
index ae87528..d1e13fd 100644
--- a/include/osmo-bts/bts_trx.h
+++ b/include/osmo-bts/bts_trx.h
@@ -60,6 +60,6 @@
 int trx_set_available(struct gsm_bts_trx *trx, int avail);
 
 uint8_t num_agch(struct gsm_bts_trx *trx, const char * arg);
-bool trx_ms_pwr_ctrl_is_osmo(struct gsm_bts_trx *trx);
+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/bts_trx.c b/src/common/bts_trx.c
index 6318dbc..3f45926 100644
--- a/src/common/bts_trx.c
+++ b/src/common/bts_trx.c
@@ -196,7 +196,7 @@
 }
 
 
-bool trx_ms_pwr_ctrl_is_osmo(struct gsm_bts_trx *trx)
+bool trx_ms_pwr_ctrl_is_osmo(const struct gsm_bts_trx *trx)
 {
 	return trx->ms_pwr_ctl_soft;
 }

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic7be19ed1560eae0a56ed30520ee9af1e949d71d
Gerrit-Change-Number: 19507
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/20200802/82c51556/attachment.htm>


More information about the gerrit-log mailing list