From d1710ff6e3cccbb6c4a68b4dadb93cdad08de3c1 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 17 Jul 2016 20:57:31 +0200 Subject: 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 --- src/common/msg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- cgit v1.2.3