Skip to content

Commit

Permalink
resolv: Fix building tst-resolv-invalid-cname for earlier C standards
Browse files Browse the repository at this point in the history
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 9caf782
("resolv: Add new tst-resolv-invalid-cname").
  • Loading branch information
fweimer-rh committed Aug 30, 2022
1 parent 52a5be0 commit d09aa4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolv/tst-resolv-invalid-cname.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d09aa4a

Please sign in to comment.