aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-03 03:47:35 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-03 03:47:35 +0700
commit6c7149be3cffdf2a79b300be35b4129c6fea0dfa (patch)
treef62d69544db231befd51eb6fb1396ba9e23ecd1f
parent3f89e4a95debcfb783989d8113f7b873879ff61a (diff)
generate_ma_for_ts(): constify per cell/timeslot ARFCN bit-vectors
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 06f0cb17d..dbd970154 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -234,8 +234,8 @@ static int generate_ma_for_ts(struct gsm_bts_trx_ts *ts)
{
/* we have three bitvecs: the per-timeslot ARFCNs, the cell chan ARFCNs
* and the MA */
- struct bitvec *cell_chan = &ts->trx->bts->si_common.cell_alloc;
- struct bitvec *ts_arfcn = &ts->hopping.arfcns;
+ const struct bitvec *cell_chan = &ts->trx->bts->si_common.cell_alloc;
+ const struct bitvec *ts_arfcn = &ts->hopping.arfcns;
struct bitvec *ma = &ts->hopping.ma;
unsigned int num_cell_arfcns, bitnum, n_chan;
int i;