[PATCH] osmo-bts[master]: Mark array as static const

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Tue Jul 5 12:49:06 UTC 2016


Review at  https://gerrit.osmocom.org/463

Mark array as static const

Change-Id: Ia70519c8f10d55084b53acb68e57debc70549246
---
M src/common/msg_utils.c
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/63/463/1

diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c
index 4c0a2cc..2042577 100644
--- a/src/common/msg_utils.c
+++ b/src/common/msg_utils.c
@@ -128,9 +128,9 @@
 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);

-- 
To view, visit https://gerrit.osmocom.org/463
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia70519c8f10d55084b53acb68e57debc70549246
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list