diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-21 16:43:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-21 16:43:38 -0400 |
| commit | 5349270f128c81769b0bc99c8cbcbcb1e3d1034e (patch) | |
| tree | 108a2cec1cce02032550d07068ac8ecee32e404d /tests/lib/test_atomlist.c | |
| parent | 173c7642f2d7e1b2f897002c4cab3278a0730e22 (diff) | |
| parent | 156d4463e4631016a854a3d6a918ebdbd7ea8635 (diff) | |
Merge pull request #4374 from opensourcerouting/typesafe-minor-fixes
Minor fixes in the typesafe API for better C++ compatibility
Diffstat (limited to 'tests/lib/test_atomlist.c')
| -rw-r--r-- | tests/lib/test_atomlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/test_atomlist.c b/tests/lib/test_atomlist.c index 078e05e336..249fff8edb 100644 --- a/tests/lib/test_atomlist.c +++ b/tests/lib/test_atomlist.c @@ -308,7 +308,7 @@ static void run_tr(struct testrun *tr) if (tr->sorted) { uint64_t prevval = 0; - for_each(asort, &shead, item) { + frr_each(asort, &shead, item) { assert(item->val1 >= prevval); prevval = item->val1; c++; @@ -316,7 +316,7 @@ static void run_tr(struct testrun *tr) assert(c == asort_count(&shead)); } else { prev = &dummy; - for_each(alist, &ahead, item) { + frr_each(alist, &ahead, item) { assert(item != prev); prev = item; c++; @@ -335,7 +335,7 @@ static void dump(const char *lbl) size_t ctr = 0; printf("dumping %s:\n", lbl); - for_each_safe(alist, &ahead, item) { + frr_each_safe(alist, &ahead, item) { printf("%s %3zu %p %3"PRIu64" %3"PRIu64"\n", lbl, ctr++, (void *)item, item->val1, item->val2); } |
