From aa24f3ce5b6a1b27ea5ba3de3fa2d9bb8e078694 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 22 Mar 2022 10:57:08 +0000 Subject: [PATCH] Adjust test after the change to TAILQ in struct prefix. --- regress/usr.sbin/bgpd/unittests/rde_decide_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/usr.sbin/bgpd/unittests/rde_decide_test.c b/regress/usr.sbin/bgpd/unittests/rde_decide_test.c index d62287d515a..c0c27208b57 100644 --- a/regress/usr.sbin/bgpd/unittests/rde_decide_test.c +++ b/regress/usr.sbin/bgpd/unittests/rde_decide_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide_test.c,v 1.8 2022/03/03 13:10:53 claudio Exp $ */ +/* $OpenBSD: rde_decide_test.c,v 1.9 2022/03/22 10:57:08 claudio Exp $ */ /* * Copyright (c) 2020 Claudio Jeker @@ -240,12 +240,12 @@ test_evaluate(struct prefix **orig, struct prefix **in, size_t nin) struct prefix *xp; j = 0; - LIST_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib) + TAILQ_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib) if (which(orig, xp) != j++) r = 1; if (r != 0) { printf("bad order"); - LIST_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib) + TAILQ_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib) printf(" %zu", which(orig, xp)); printf(" FAILED\n"); } -- 2.20.1