diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-17 20:57:31 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-25 16:38:18 +0200 |
commit | 7f1365c05e94782f4c8e466aa1795e3e09acd330 (patch) | |
tree | e1035fb9d6f47f73cd73e6f8955c19bab4f1bf2a /src | |
parent | 2479ef4133b274df9abe179320ee9b11cb572ba4 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/common/msg_utils.c | 2 |
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++) |