aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-15 01:27:37 +0100
committerlaforge <laforge@osmocom.org>2021-02-15 10:58:54 +0000
commitd37041b1ea3cf382b6168daf7d8dbd5d7ad7615e (patch)
treebbc8f392cc7010816ca319be8d33e276de616b9d /tests
parent7d29ff9345e2bae58fe99d7442848253e6312de7 (diff)
ta_control: make 'struct bts_ul_meas' parameters const
The only reason why it was not 'const' is that in lchan_new_ul_meas() we may need to overwrite 'ulm->is_sub'. This can still be done after memcpy()ing a new set of samples to the destination buffer. Change-Id: I0cabf75f8e0bf793c01225a4a8433e994c93f562 Related: OS#5024
Diffstat (limited to 'tests')
-rw-r--r--tests/meas/meas_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/meas/meas_test.c b/tests/meas/meas_test.c
index 174abbe6..d1293365 100644
--- a/tests/meas/meas_test.c
+++ b/tests/meas/meas_test.c
@@ -89,7 +89,7 @@ static void test_meas_compute(const struct meas_testcase *mtc)
/* feed uplink measurements into the code */
for (i = 0; i < mtc->ulm_count; i++) {
- lchan_new_ul_meas(lchan, (struct bts_ul_meas *) &mtc->ulm[i], fn);
+ lchan_new_ul_meas(lchan, &mtc->ulm[i], fn);
fn += 1;
}