[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1369473168-13456-1-git-send-email-toralf.foerster@gmx.de>
Date: Sat, 25 May 2013 11:12:48 +0200
From: Toralf Förster <toralf.foerster@....de>
To: viro@...iv.linux.org.uk
Cc: linux-kernel@...r.kernel.org,
Toralf Förster <toralf.foerster@....de>
Subject: [PATCH] kernel/auditfilter.c: fix compiler warning about decimal constant
fixes
CC kernel/auditfilter.o
kernel/auditfilter.c: In function ‘audit_data_to_entry’:
kernel/auditfilter.c:426:3: warning: this decimal constant is unsigned
only in ISO C90 [enabled by default]
Signed-off-by: Toralf Förster <toralf.foerster@....de>
---
kernel/auditfilter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 6bd4a90..0ee9eff 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -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;
}
--
1.8.1.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists