diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-31 02:47:43 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-06-09 08:17:38 +0000 |
commit | 6789ba35a6de52c791a9823b3b4409ec252b804d (patch) | |
tree | ad8c83b696e4dcf30edfaddd85d5cf2866869b7f /src/codec/gsm620.c | |
parent | 43058efa939f36069cdac82f356bdc94ee10d0fc (diff) |
osmo_{fr,hr}_check_sid(): Use const input argument
Change-Id: If779cce63f06a18d4f3b0cb3d6dd7a99aa52a646
Diffstat (limited to 'src/codec/gsm620.c')
-rw-r--r-- | src/codec/gsm620.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/gsm620.c b/src/codec/gsm620.c index 6f1a95bb..29ae4f53 100644 --- a/src/codec/gsm620.c +++ b/src/codec/gsm620.c @@ -277,11 +277,11 @@ static inline uint16_t mask(const uint8_t msb) * \param[in] payload_len Length of payload * \returns true if code word is found, false otherwise */ -bool osmo_hr_check_sid(uint8_t *rtp_payload, size_t payload_len) +bool osmo_hr_check_sid(const uint8_t *rtp_payload, size_t payload_len) { uint8_t i, bits[] = { 1, 2, 8, 9, 5, 4, 9, 5, 4, 9, 5, 4, 9, 5 }; struct bitvec bv; - bv.data = rtp_payload; + bv.data = (uint8_t *) rtp_payload; bv.data_len = payload_len; bv.cur_bit = 33; |