Max has submitted this change and it was merged. Change subject: Simplify TS alloc: constify max dl slot func ......................................................................
Simplify TS alloc: constify max dl slot func Constify parameters of gprs_alloc_max_dl_slots_per_ms(). Change-Id: Ic90930d98560459eab0054cb9e1625cb99db61c8 Related: OS#2282 --- M src/gprs_rlcmac.h M src/gprs_rlcmac_ts_alloc.cpp 2 files changed, 2 insertions(+), 2 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h index 33dd9fd..8ff3c90 100644 --- a/src/gprs_rlcmac.h +++ b/src/gprs_rlcmac.h @@ -97,7 +97,7 @@ uint8_t trx, uint8_t ts, uint32_t fn, uint8_t block_nr); -int gprs_alloc_max_dl_slots_per_ms(struct gprs_rlcmac_bts *bts, +int gprs_alloc_max_dl_slots_per_ms(const struct gprs_rlcmac_bts *bts, uint8_t ms_class = 0); extern "C" { diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp index 6791b03..f26b27c 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -1017,7 +1017,7 @@ return alloc_algorithm_a(bts, ms_, tbf_, single, use_trx); } -int gprs_alloc_max_dl_slots_per_ms(struct gprs_rlcmac_bts *bts, uint8_t ms_class) +int gprs_alloc_max_dl_slots_per_ms(const struct gprs_rlcmac_bts *bts, uint8_t ms_class) { int rx = mslot_class_get_rx(ms_class); -- To view, visit https://gerrit.osmocom.org/6224 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic90930d98560459eab0054cb9e1625cb99db61c8 Gerrit-PatchSet: 4 Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Owner: Max <msur...@sysmocom.de> Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Max <msur...@sysmocom.de>