From 6c7149be3cffdf2a79b300be35b4129c6fea0dfa Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 3 Jul 2020 03:47:35 +0700 Subject: [PATCH] generate_ma_for_ts(): constify per cell/timeslot ARFCN bit-vectors Change-Id: If750003beb8653cf67fd192fa5c16343138155c9 --- src/osmo-bsc/osmo_bsc_main.c | 4 ++-- 1 file 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;