2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 23:05:17 +00:00

Use the fallthrough attribute instead of /* FALLTHROUGH */ comments.

This commit is contained in:
Todd C. Miller
2020-08-01 13:10:50 -06:00
parent 20fd3b6363
commit 03ad96e445
29 changed files with 121 additions and 100 deletions

View File

@@ -152,7 +152,7 @@ array_to_member_list(void *a, sudo_ldap_iter_t iter)
m->type = ALL;
break;
}
/* FALLTHROUGH */
FALLTHROUGH;
default:
m->type = WORD;
break;
@@ -222,7 +222,7 @@ host_to_member(char *host)
m->type = ALL;
break;
}
/* FALLTHROUGH */
FALLTHROUGH;
default:
if (is_address(host)) {
m->type = NTWKADDR;