]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/auditfilter.c: fixing build warning
authorRaphael S. Carvalho <raphael.scarv@gmail.com>
Wed, 19 Jun 2013 00:05:23 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:39 +0000 (17:12 +1000)
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>
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;
                }