]> sourceware.org Git - glibc.git/commitdiff
Revert "inet: Avoid label at end of compound statement in tst-if_nameindex"
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 Aug 2024 18:02:40 +0000 (20:02 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Aug 2024 18:06:33 +0000 (20:06 +0200)
This reverts commit 26aca73db5e5ea299b554ceae418b13102b24948.

Reason for revert: Unintended semantic change.

inet/tst-if_nameindex.c

index 1027182ef53c1f0e8d28c50b24d45f5711cadb81..b025cdb3a7c6b68c19ebbec25d266383799d45e0 100644 (file)
@@ -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:
     }
 
 
This page took 0.035764 seconds and 5 git commands to generate.