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
Wed Jan 27 12:39:00 UTC 2021


pespin has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/60/22460/1

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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210127/b2e686df/attachment.htm>


More information about the gerrit-log mailing list