diff options
author | Max <msuraev@sysmocom.de> | 2018-01-31 18:03:49 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-02-20 10:20:55 +0100 |
commit | 4da385998acedd83e2f2bb029340d3c1ce710faf (patch) | |
tree | 4427c94d790999501146e5f17e7f7047afc1c990 /src | |
parent | c5407c775adf176b127244f6c94ad189b39c2fc7 (diff) |
Simplify TS alloc: constify max dl slot func
Constify parameters of gprs_alloc_max_dl_slots_per_ms().
Change-Id: Ic90930d98560459eab0054cb9e1625cb99db61c8
Related: OS#2282
Diffstat (limited to 'src')
-rw-r--r-- | src/gprs_rlcmac.h | 2 | ||||
-rw-r--r-- | src/gprs_rlcmac_ts_alloc.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h index 33dd9fd5..8ff3c90e 100644 --- a/src/gprs_rlcmac.h +++ b/src/gprs_rlcmac.h @@ -97,7 +97,7 @@ int gprs_rlcmac_rcv_rts_block(struct gprs_rlcmac_bts *bts, 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 6791b037..f26b27cf 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -1017,7 +1017,7 @@ int alloc_algorithm_dynamic(struct gprs_rlcmac_bts *bts, GprsMs *ms_, struct gpr 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); |