6ca6e8
commit 044755e2faeeca13bb77b2e9e638a45e6e90a5fa
6ca6e8
Author: Florian Weimer <fweimer@redhat.com>
6ca6e8
Date:   Tue Aug 30 13:30:03 2022 +0200
6ca6e8
6ca6e8
    resolv: Fix building tst-resolv-invalid-cname for earlier C standards
6ca6e8
    
6ca6e8
    This fixes this compiler error:
6ca6e8
    
6ca6e8
    tst-resolv-invalid-cname.c: In function ‘test_mode_to_string’:
6ca6e8
    tst-resolv-invalid-cname.c:164:10: error: label at end of compound statement
6ca6e8
         case test_mode_num:
6ca6e8
              ^~~~~~~~~~~~~
6ca6e8
    
6ca6e8
    Fixes commit 9caf782276ecea4bc86fc94fbb52779736f3106d
6ca6e8
    ("resolv: Add new tst-resolv-invalid-cname").
6ca6e8
    
6ca6e8
    (cherry picked from commit d09aa4a17229bcaa2ec7642006b12612498582e7)
6ca6e8
6ca6e8
diff --git a/resolv/tst-resolv-invalid-cname.c b/resolv/tst-resolv-invalid-cname.c
6ca6e8
index ae2d4419b1978c02..63dac90e02d6cbc7 100644
6ca6e8
--- a/resolv/tst-resolv-invalid-cname.c
6ca6e8
+++ b/resolv/tst-resolv-invalid-cname.c
6ca6e8
@@ -162,7 +162,7 @@ test_mode_to_string (enum test_mode mode)
6ca6e8
     case gai_canon:
6ca6e8
       return "gai_canon";
6ca6e8
     case test_mode_num:
6ca6e8
-      /* Report error below.  */
6ca6e8
+      break;                    /* Report error below.  */
6ca6e8
     }
6ca6e8
   FAIL_EXIT1 ("invalid test_mode: %d", mode);
6ca6e8
 }