about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-30 13:30:03 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-09-21 19:37:24 +0200
commit044755e2faeeca13bb77b2e9e638a45e6e90a5fa (patch)
treec3456c352b611aa7950780b92c7af843b63490b0 /resolv
parent2def56a3498e3f89c866b7ef79649ee5a8a291c6 (diff)
downloadglibc-044755e2faeeca13bb77b2e9e638a45e6e90a5fa.tar.gz
glibc-044755e2faeeca13bb77b2e9e638a45e6e90a5fa.tar.xz
glibc-044755e2faeeca13bb77b2e9e638a45e6e90a5fa.zip
resolv: Fix building tst-resolv-invalid-cname for earlier C standards
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").

(cherry picked from commit d09aa4a17229bcaa2ec7642006b12612498582e7)
Diffstat (limited to 'resolv')
-rw-r--r--resolv/tst-resolv-invalid-cname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/tst-resolv-invalid-cname.c b/resolv/tst-resolv-invalid-cname.c
index ae2d4419b1..63dac90e02 100644
--- a/resolv/tst-resolv-invalid-cname.c
+++ b/resolv/tst-resolv-invalid-cname.c
@@ -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);
 }