aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-07-17 20:57:31 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2016-07-24 15:49:29 +0200
commitd1710ff6e3cccbb6c4a68b4dadb93cdad08de3c1 (patch)
tree8602a88bb97f56cb76635440bb0b0fec9858591e
parent8967ad4737ae66069e366fb59a7dc1f3805a1b59 (diff)
fix compiler warning: msg_utils.c: fn_chk() constify arg
The only caller dtx_sched_optional() passes const arrays and a warning was issued. Change-Id: I18e0788ef96489d2116a60cae57bd516fe6eae8e
-rw-r--r--src/common/msg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c
index 2042577a..f12c6534 100644
--- a/src/common/msg_utils.c
+++ b/src/common/msg_utils.c
@@ -111,7 +111,7 @@ void save_last_sid(struct gsm_lchan *lchan, uint8_t *l1_payload, size_t length,
memcpy(lchan->tch.last_sid.buf, l1_payload, copy_len);
}
-static inline bool fn_chk(uint8_t *t, uint32_t fn)
+static inline bool fn_chk(const uint8_t *t, uint32_t fn)
{
uint8_t i;
for (i = 0; i < ARRAY_SIZE(t); i++)