2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 00:35:14 +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

@@ -50,13 +50,13 @@ sudo_arc4random_buf(void *buf, size_t n)
switch (m) {
case 4:
*cp++ = (val >> 24) & 0xff;
/* FALLTHROUGH */
FALLTHROUGH;
case 3:
*cp++ = (val >> 16) & 0xff;
/* FALLTHROUGH */
FALLTHROUGH;
case 2:
*cp++ = (val >> 8) & 0xff;
/* FALLTHROUGH */
FALLTHROUGH;
case 1:
*cp++ = val & 0xff;
break;