Commit 039b6b3ed84e45a6f8316358dd2bfdc83d59fc45
Committed by
Linus Torvalds
1 parent
b2bbe383ef
Exists in
master
and in
4 other branches
audit: add spaces on either side of case "..." operator.
Following the programming advice laid down in the gcc manual, make sure the case "..." operator has spaces on either side. According to: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Case-Ranges.html#Case-Ranges: "Be careful: Write spaces around the ..., for otherwise it may be parsed wrong when you use it with integer values." Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
kernel/audit.c
... | ... | @@ -515,8 +515,8 @@ |
515 | 515 | err = -EPERM; |
516 | 516 | break; |
517 | 517 | case AUDIT_USER: |
518 | - case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: | |
519 | - case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2: | |
518 | + case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: | |
519 | + case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: | |
520 | 520 | if (security_netlink_recv(skb, CAP_AUDIT_WRITE)) |
521 | 521 | err = -EPERM; |
522 | 522 | break; |
... | ... | @@ -614,8 +614,8 @@ |
614 | 614 | loginuid, sid); |
615 | 615 | break; |
616 | 616 | case AUDIT_USER: |
617 | - case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: | |
618 | - case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2: | |
617 | + case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: | |
618 | + case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: | |
619 | 619 | if (!audit_enabled && msg_type != AUDIT_USER_AVC) |
620 | 620 | return 0; |
621 | 621 |