fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bts/+/33584 )
Change subject: scheduler: constify *data pointer in _sched_compose_*_ind()
......................................................................
scheduler: constify *data pointer in _sched_compose_*_ind()
Change-Id: I617e7ed50d27e047cc2851f5d44d31ad3111ce0a
Related: OS#1572
---
M include/osmo-bts/scheduler_backend.h
M src/common/scheduler.c
2 files changed, 14 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/84/33584/1
diff --git a/include/osmo-bts/scheduler_backend.h b/include/osmo-bts/scheduler_backend.h
index d465744..83dd578 100644
--- a/include/osmo-bts/scheduler_backend.h
+++ b/include/osmo-bts/scheduler_backend.h
@@ -43,14 +43,14 @@
int _sched_compose_ph_data_ind(struct l1sched_ts *l1ts, uint32_t fn,
enum trx_chan_type chan,
- uint8_t *data, uint8_t data_len,
+ const uint8_t *data, uint8_t data_len,
uint16_t ber10k, float rssi,
int16_t ta_offs_256bits, int16_t link_qual_cb,
enum osmo_ph_pres_info_type presence_info);
int _sched_compose_tch_ind(struct l1sched_ts *l1ts, uint32_t fn,
enum trx_chan_type chan,
- uint8_t *data, uint8_t data_len,
+ const uint8_t *data, uint8_t data_len,
uint16_t ber10k, float rssi,
int16_t ta_offs_256bits, int16_t link_qual_cb,
uint8_t is_sub);
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index fc34491..dc7d94f 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -751,7 +751,7 @@
int _sched_compose_ph_data_ind(struct l1sched_ts *l1ts, uint32_t fn,
enum trx_chan_type chan,
- uint8_t *data, uint8_t data_len,
+ const uint8_t *data, uint8_t data_len,
uint16_t ber10k, float rssi,
int16_t ta_offs_256bits, int16_t link_qual_cb,
enum osmo_ph_pres_info_type presence_info)
@@ -789,7 +789,7 @@
int _sched_compose_tch_ind(struct l1sched_ts *l1ts, uint32_t fn,
enum trx_chan_type chan,
- uint8_t *data, uint8_t data_len,
+ const uint8_t *data, uint8_t data_len,
uint16_t ber10k, float rssi,
int16_t ta_offs_256bits, int16_t link_qual_cb,
uint8_t is_sub)
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bts/+/33584
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I617e7ed50d27e047cc2851f5d44d31ad3111ce0a
Gerrit-Change-Number: 33584
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange