Change in osmo-bts[master]: oml: use ARRAY_SIZE() in oml_rx_set_bts_attr()

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Fri Nov 5 17:47:28 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/26129 )


Change subject: oml: use ARRAY_SIZE() in oml_rx_set_bts_attr()
......................................................................

oml: use ARRAY_SIZE() in oml_rx_set_bts_attr()

Change-Id: I89dab55e39fe49c8b4d3afb4b46d1b7f2bf3663c
---
M src/common/oml.c
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/common/oml.c b/src/common/oml.c
index 30caad5..a434ad3 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -598,7 +598,7 @@
 	/* 9.4.25 Interference Level Boundaries */
 	if (TLVP_PRES_LEN(&tp, NM_ATT_INTERF_BOUND, 6)) {
 		payload = TLVP_VAL(&tp, NM_ATT_INTERF_BOUND);
-		for (i = 0; i < 6; i++) {
+		for (i = 0; i < ARRAY_SIZE(bts->interference.boundary); i++) {
 			const int16_t boundary = payload[i];
 			bts->interference.boundary[i] = -1 * boundary;
 		}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/26129
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I89dab55e39fe49c8b4d3afb4b46d1b7f2bf3663c
Gerrit-Change-Number: 26129
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211105/0a5533ef/attachment.htm>


More information about the gerrit-log mailing list