diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-08-30 13:30:03 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-09-20 13:05:58 +0200 |
commit | 6fea8e6b946193d4a4fd7c22ccf3f9cbc7dabaa7 (patch) | |
tree | 5e3972ffd457b92705caa7866b9cb2821dfaa244 /resolv | |
parent | 649213ae27e40fb63a8206ab912c44581363c146 (diff) | |
download | glibc-6fea8e6b946193d4a4fd7c22ccf3f9cbc7dabaa7.zip glibc-6fea8e6b946193d4a4fd7c22ccf3f9cbc7dabaa7.tar.gz glibc-6fea8e6b946193d4a4fd7c22ccf3f9cbc7dabaa7.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/tst-resolv-invalid-cname.c b/resolv/tst-resolv-invalid-cname.c index ae2d441..63dac90 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); } |