aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-21 20:02:40 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-21 20:06:33 +0200
commit498ba34ee2472c28cca7b32d132824dbf62651d8 (patch)
treeb531f9d9a88d926b920631d6563b34be07859c2f
parentinet: Avoid label at end of compound statement in tst-if_nameindex (diff)
downloadglibc-498ba34ee2472c28cca7b32d132824dbf62651d8.tar.xz
glibc-498ba34ee2472c28cca7b32d132824dbf62651d8.zip
Revert "inet: Avoid label at end of compound statement in tst-if_nameindex"
This reverts commit 26aca73db5e5ea299b554ceae418b13102b24948. Reason for revert: Unintended semantic change.
-rw-r--r--inet/tst-if_nameindex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/inet/tst-if_nameindex.c b/inet/tst-if_nameindex.c
index 1027182ef5..b025cdb3a7 100644
--- a/inet/tst-if_nameindex.c
+++ b/inet/tst-if_nameindex.c
@@ -96,13 +96,15 @@ do_test (void)
/* Make sure our "invalid" name is really invalid. */
for (ifp = if_ni; !(ifp->if_index == 0 && ifp->if_name == NULL); ifp++)
if (strcmp (test_names[i], ifp->if_name) == 0)
- continue;
+ goto not_this_one;
printf ("Testing if_nametoindex (%s) == 0\n", test_names[i]);
unsigned int idx = if_nametoindex (test_names[i]);
TEST_VERIFY (idx == 0);
TEST_VERIFY (errno == ENODEV);
+
+ not_this_one:
}