aboutsummaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-21 19:13:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-21 19:16:04 +0200
commit26aca73db5e5ea299b554ceae418b13102b24948 (patch)
treea94d1342e4daf9e7630f691d149e91f5d3cec7b4 /inet
parent734e7f91e752f44984fe42c2384c23a0290b6e56 (diff)
downloadglibc-26aca73db5e5ea299b554ceae418b13102b24948.zip
glibc-26aca73db5e5ea299b554ceae418b13102b24948.tar.gz
glibc-26aca73db5e5ea299b554ceae418b13102b24948.tar.bz2
inet: Avoid label at end of compound statement in tst-if_nameindex
This fails to compile with GCC 8.
Diffstat (limited to 'inet')
-rw-r--r--inet/tst-if_nameindex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/inet/tst-if_nameindex.c b/inet/tst-if_nameindex.c
index b025cdb..1027182 100644
--- a/inet/tst-if_nameindex.c
+++ b/inet/tst-if_nameindex.c
@@ -96,15 +96,13 @@ 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)
- goto not_this_one;
+ continue;
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:
}