Skip to content

Commit

Permalink
kernel/auditfilter.c: fixing build warning
Browse files Browse the repository at this point in the history
  kernel/auditfilter.c:426: warning: this decimal constant is unsigned only in ISO C90

Signed-off-by: Raphael S. Carvalho <[email protected]>
Cc: Eric Paris <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
raphaelsc authored and torvalds committed Jul 9, 2013
1 parent 79f6530 commit 6beb8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/auditfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
f->lsm_rule = NULL;

/* Support legacy tests for a valid loginuid */
if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295)) {
if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295U)) {
f->type = AUDIT_LOGINUID_SET;
f->val = 0;
}
Expand Down

0 comments on commit 6beb8a2

Please sign in to comment.