fixeria has uploaded this change for review.

View Change

tests/rlcmac: use ARRAY_SIZE macro

Change-Id: I6e9d95ef007e984d25403eb64f8aeab02e3fa8e7
---
M tests/rlcmac/RLCMACTest.cpp
1 file changed, 2 insertions(+), 7 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/55/28955/1
diff --git a/tests/rlcmac/RLCMACTest.cpp b/tests/rlcmac/RLCMACTest.cpp
index f2b0447..9ba7831 100644
--- a/tests/rlcmac/RLCMACTest.cpp
+++ b/tests/rlcmac/RLCMACTest.cpp
@@ -55,10 +55,8 @@
"40883c1493120000000012002b2b2b2b2b2b2b2b2b2b2b", // Pkt Paging Request (OS#4838)
};

- int testDataSize = sizeof(testData)/sizeof(testData[0]);
-
cout << " DOWNLINK " << endl;
- for (int i = 0; i < testDataSize; i++)
+ for (unsigned int i = 0; i < ARRAY_SIZE(testData); i++)
{
cout << "vector1 = " << testData[i] << endl;
bitvec *vector = bitvec_alloc(23, test_ctx);
@@ -109,11 +107,8 @@
"4017e5b2cd5a2eca68655e44aec84880139300412b2b2b",
};

- int testDataSize = sizeof(testData)/sizeof(testData[0]);
-
-
cout << " UPLINK " << endl;
- for (int i = 0; i < testDataSize; i++)
+ for (unsigned int i = 0; i < ARRAY_SIZE(testData); i++)
{
cout << "vector1 = " << testData[i] << endl;
bitvec *vector = bitvec_alloc(23, test_ctx);

To view, visit change 28955. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I6e9d95ef007e984d25403eb64f8aeab02e3fa8e7
Gerrit-Change-Number: 28955
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange