mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 05:50:14 +00:00
inet: Avoid label at end of compound statement in tst-if_nameindex
This fails to compile with GCC 8.
This commit is contained in:
parent
734e7f91e7
commit
26aca73db5
@ -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:
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user