aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-07-05 14:48:26 +0200
committerMax <msuraev@sysmocom.de>2016-07-05 14:48:26 +0200
commite3edc17426139e16da869ac62f80ce45bd452935 (patch)
tree554d48c6f36def112923eff2b9e245afc3476a99
parent7267a0d37e54321565a5388a3c8abd3efc573c74 (diff)
Mark array as static const
-rw-r--r--src/common/msg_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c
index 4c0a2cc4..2042577a 100644
--- a/src/common/msg_utils.c
+++ b/src/common/msg_utils.c
@@ -128,9 +128,9 @@ static inline bool fn_chk(uint8_t *t, uint32_t fn)
bool dtx_sched_optional(struct gsm_lchan *lchan, uint32_t fn)
{
/* According to 3GPP TS 45.008 ยง 8.3: */
- uint8_t f[] = { 52, 53, 54, 55, 56, 57, 58, 59 },
- h0[] = { 0, 2, 4, 6, 52, 54, 56, 58 },
- h1[] = { 14, 16, 18, 20, 66, 68, 70, 72 };
+ static const uint8_t f[] = { 52, 53, 54, 55, 56, 57, 58, 59 },
+ h0[] = { 0, 2, 4, 6, 52, 54, 56, 58 },
+ h1[] = { 14, 16, 18, 20, 66, 68, 70, 72 };
if (lchan->tch_mode == GSM48_CMODE_SPEECH_V1) {
if (lchan->type == GSM_LCHAN_TCH_F)
return fn_chk(f, fn);