aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-26 11:09:16 +0100
committerMax <msuraev@sysmocom.de>2018-01-26 12:57:05 +0100
commita76a7d0c6c526f333ebdc02d2332a8b6659d8fb2 (patch)
treebccc3706e02e3ed1e67298c5dbf06d10cc60cf17 /src/bts.cpp
parentd000d80968ce6292d6715008ed803ec1f41b6a10 (diff)
Simplify TS alloc: adjust function signatures
* document used parameters and return values * use consistent formatting * constify function parameters where appropriate (adjusting parameter types if necessary) Change-Id: I211b10b4da59c73d509b719346774515c761886a Related: OS#2282
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index e236f93..1669739 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -456,10 +456,9 @@ gprs_rlcmac_ul_tbf *BTS::ul_tbf_by_tfi(uint8_t tfi, uint8_t trx, uint8_t ts)
* a TRX. The first TRX that contains such an TFI is returned. Negative values
* indicate errors.
*/
-int BTS::tfi_find_free(enum gprs_rlcmac_tbf_direction dir,
- uint8_t *_trx, int8_t use_trx)
+int BTS::tfi_find_free(enum gprs_rlcmac_tbf_direction dir, uint8_t *_trx, int8_t use_trx) const
{
- struct gprs_rlcmac_pdch *pdch;
+ const struct gprs_rlcmac_pdch *pdch;
uint32_t free_tfis;
bool has_pdch = false;
uint8_t trx_from, trx_to, trx, ts, tfi;