[MERGED] 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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Jul 7 12:59:43 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: Mark array as static const
......................................................................


Mark array as static const

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

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: Ia70519c8f10d55084b53acb68e57debc70549246
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list