Change in osmo-bts[master]: bts: cosmetic: make param 'net' of gsm_bts_num() 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/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Sep 30 07:35:32 UTC 2020


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

Change subject: bts: cosmetic: make param 'net' of gsm_bts_num() const
......................................................................

bts: cosmetic: make param 'net' of gsm_bts_num() const

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

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



diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h
index da321b0..7d3f8bf 100644
--- a/include/osmo-bts/bts.h
+++ b/include/osmo-bts/bts.h
@@ -319,7 +319,7 @@
 #define GSM_BTS_SI(bts, i)     (void *)((bts)->si_buf[i][0])
 
 struct gsm_bts *gsm_bts_alloc(void *talloc_ctx, uint8_t bts_num);
-struct gsm_bts *gsm_bts_num(struct gsm_network *net, int num);
+struct gsm_bts *gsm_bts_num(const struct gsm_network *net, int num);
 
 int bts_init(struct gsm_bts *bts);
 void bts_shutdown(struct gsm_bts *bts, const char *reason);
diff --git a/src/common/bts.c b/src/common/bts.c
index 983f61d..c900428 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -255,7 +255,7 @@
 	return bts;
 }
 
-struct gsm_bts *gsm_bts_num(struct gsm_network *net, int num)
+struct gsm_bts *gsm_bts_num(const struct gsm_network *net, int num)
 {
 	struct gsm_bts *bts;
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I378fea4aefb2cc4253cdd99ebc9c4f01b21faf95
Gerrit-Change-Number: 20286
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200930/44a63bfc/attachment.htm>


More information about the gerrit-log mailing list