Change in osmo-pcu[master]: tbf: Make tbf_ms() param 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/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Jan 29 11:54:18 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/22460 )

Change subject: tbf: Make tbf_ms() param const
......................................................................

tbf: Make tbf_ms() param const

Change-Id: I041c564b15d17d05ce97ea0085fcd9192a346578
---
M src/tbf.cpp
M src/tbf.h
2 files changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/src/tbf.cpp b/src/tbf.cpp
index d2d55f2..0fec476 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -1165,7 +1165,7 @@
 	return &tbf->m_bts_list.list;
 }
 
-struct GprsMs *tbf_ms(struct gprs_rlcmac_tbf *tbf)
+struct GprsMs *tbf_ms(const struct gprs_rlcmac_tbf *tbf)
 {
 	return tbf->ms();
 }
diff --git a/src/tbf.h b/src/tbf.h
index d616076..983d38c 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -196,7 +196,7 @@
 void tbf_set_ms(struct gprs_rlcmac_tbf *tbf, struct GprsMs *ms);
 struct llist_head *tbf_ms_list(struct gprs_rlcmac_tbf *tbf);
 struct llist_head *tbf_bts_list(struct gprs_rlcmac_tbf *tbf);
-struct GprsMs *tbf_ms(struct gprs_rlcmac_tbf *tbf);
+struct GprsMs *tbf_ms(const struct gprs_rlcmac_tbf *tbf);
 bool tbf_timers_pending(struct gprs_rlcmac_tbf *tbf, enum tbf_timers t);
 void tbf_free(struct gprs_rlcmac_tbf *tbf);
 struct gprs_llc *tbf_llc(struct gprs_rlcmac_tbf *tbf);

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I041c564b15d17d05ce97ea0085fcd9192a346578
Gerrit-Change-Number: 22460
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
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/20210129/187cbb26/attachment.htm>


More information about the gerrit-log mailing list