Change in osmo-pcu[master]: pcu_l1_if: cosmetic: use ARRAY_SIZE() in pcu_rx_info_ind()

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Oct 9 08:52:35 UTC 2020


Vadim Yanitskiy has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/20488 )

Change subject: pcu_l1_if: cosmetic: use ARRAY_SIZE() in pcu_rx_info_ind()
......................................................................

pcu_l1_if: cosmetic: use ARRAY_SIZE() in pcu_rx_info_ind()

Change-Id: Iff11c854b1687f75c1125a5bcd616da95ade69ee
---
M src/pcu_l1_if.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  lynxis lazus: Looks good to me, approved



diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index b2a44d7..74173b6 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -579,7 +579,7 @@
 		goto bssgp_failed;
 	}
 
-	for (int i=0; i<2; i++) {
+	for (unsigned int i = 0; i < ARRAY_SIZE(info_ind->nsvci); i++) {
 		struct osmo_sockaddr_str sockstr;
 
 		switch (info_ind->address_type[i]) {

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Iff11c854b1687f75c1125a5bcd616da95ade69ee
Gerrit-Change-Number: 20488
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201009/791cdb82/attachment.htm>


More information about the gerrit-log mailing list