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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user