]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv: Fix building tst-resolv-invalid-cname for earlier C standards
authorFlorian Weimer <fweimer@redhat.com>
Tue, 30 Aug 2022 11:30:03 +0000 (13:30 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 30 Aug 2022 12:04:12 +0000 (14:04 +0200)
This fixes this compiler error:

tst-resolv-invalid-cname.c: In function ‘test_mode_to_string’:
tst-resolv-invalid-cname.c:164:10: error: label at end of compound statement
     case test_mode_num:
          ^~~~~~~~~~~~~

Fixes commit 9caf782276ecea4bc86fc94fbb52779736f3106d
("resolv: Add new tst-resolv-invalid-cname").

resolv/tst-resolv-invalid-cname.c

index ae2d4419b1978c02ec5838b13e99d2f115f56de6..63dac90e02d6cbc7b1296b8c47c44b2168cfacd9 100644 (file)
@@ -162,7 +162,7 @@ test_mode_to_string (enum test_mode mode)
     case gai_canon:
       return "gai_canon";
     case test_mode_num:
-      /* Report error below.  */
+      break;                    /* Report error below.  */
     }
   FAIL_EXIT1 ("invalid test_mode: %d", mode);
 }