]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kernel/auditfilter.c: fixing build warning
authorRaphael S. Carvalho <raphael.scarv@gmail.com>
Mon, 8 Jul 2013 22:59:37 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:19 +0000 (10:33 -0700)
  kernel/auditfilter.c:426: warning: this decimal constant is unsigned only in ISO C90

Signed-off-by: Raphael S. Carvalho <raphael.scarv@gmail.com>
Cc: Eric Paris <eparis@redhat.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>
kernel/auditfilter.c

index 6bd4a90d1991cdf84e5d14fa187af4a3b3f390f9..0ee9eff866d6b5a9b1e26772487fd04a1fa5371a 100644 (file)
@@ -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;
                }