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.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/22607 ) Change subject: tbf: Constify some methods ...................................................................... tbf: Constify some methods Change-Id: I2681a98583f4fb26a274c75d0279084239f76a68 --- M src/tbf.cpp M src/tbf.h 2 files changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/07/22607/1 diff --git a/src/tbf.cpp b/src/tbf.cpp index 74c790c..35bd81d 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -544,7 +544,7 @@ } int gprs_rlcmac_tbf::check_polling(uint32_t fn, uint8_t ts, - uint32_t *poll_fn_, unsigned int *rrbp_) + uint32_t *poll_fn_, unsigned int *rrbp_) const { uint32_t new_poll_fn = next_fn(fn, 13); @@ -1066,7 +1066,7 @@ return 0; } -const char *tbf_name(gprs_rlcmac_tbf *tbf) +const char *tbf_name(const gprs_rlcmac_tbf *tbf) { return tbf ? tbf->name() : "(no TBF)"; } diff --git a/src/tbf.h b/src/tbf.h index a2c4747..1d28afb 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -190,7 +190,7 @@ extern "C" { #endif struct gprs_rlcmac_tbf; -const char *tbf_name(struct gprs_rlcmac_tbf *tbf); +const char *tbf_name(const struct gprs_rlcmac_tbf *tbf); enum gprs_rlcmac_tbf_state tbf_state(const struct gprs_rlcmac_tbf *tbf); enum gprs_rlcmac_tbf_direction tbf_direction(const struct gprs_rlcmac_tbf *tbf); void tbf_set_ms(struct gprs_rlcmac_tbf *tbf, struct GprsMs *ms); @@ -262,7 +262,7 @@ int establish_dl_tbf_on_pacch(); int check_polling(uint32_t fn, uint8_t ts, - uint32_t *poll_fn, unsigned int *rrbp); + uint32_t *poll_fn, unsigned int *rrbp) const; void set_polling(uint32_t poll_fn, uint8_t ts, enum gprs_rlcmac_tbf_poll_type t); void poll_timeout(); -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/22607 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I2681a98583f4fb26a274c75d0279084239f76a68 Gerrit-Change-Number: 22607 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/20210201/b372a0b3/attachment.htm>