Change in libosmocore[master]: tests/coding: cosmetic: use ARRAY_SIZE() macro from utils.h

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

laforge gerrit-no-reply at lists.osmocom.org
Wed Apr 1 09:43:18 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/17684 )

Change subject: tests/coding: cosmetic: use ARRAY_SIZE() macro from utils.h
......................................................................

tests/coding: cosmetic: use ARRAY_SIZE() macro from utils.h

Change-Id: Ie6278d84d405f073669e607f978ca5b187bcf78e
---
M tests/coding/coding_test.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, approved



diff --git a/tests/coding/coding_test.c b/tests/coding/coding_test.c
index 087a593..2ae95f8 100644
--- a/tests/coding/coding_test.c
+++ b/tests/coding/coding_test.c
@@ -384,8 +384,8 @@
 {
 	int i, len_l2, len_mb;
 
-	len_l2 = sizeof(test_l2) / sizeof(test_l2[0]);
-	len_mb = sizeof(test_macblock) / sizeof(test_macblock[0]);
+	len_l2 = ARRAY_SIZE(test_l2);
+	len_mb = ARRAY_SIZE(test_macblock);
 
 	for (i = 0; i < len_l2; i++)
 		test_xcch(test_l2[i]);

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie6278d84d405f073669e607f978ca5b187bcf78e
Gerrit-Change-Number: 17684
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200401/237e5b8d/attachment.htm>


More information about the gerrit-log mailing list