summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorCordelia <cordsam@linux.vnet.ibm.com>2008-08-18 18:45:51 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2008-09-02 05:06:45 +0200
commitc4bacefb7aaf49da11a695f29d85d40909f17693 (patch)
treef79955a37bab3ebe9942cba292ae560fb281c8bf /kernel
parentResource handling: add 'insert_resource_expand_to_fit()' function (diff)
downloadlinux-c4bacefb7aaf49da11a695f29d85d40909f17693.tar.xz
linux-c4bacefb7aaf49da11a695f29d85d40909f17693.zip
[PATCH] audit: Moved variable declaration to beginning of function
got rid of compilation warning: ISO C90 forbids mixed declarations and code Signed-off-by: Cordelia Sam <cordesam@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditsc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 972f8e61d36a..59cedfb040e7 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -243,10 +243,11 @@ static inline int open_arg(int flags, int mask)
static int audit_match_perm(struct audit_context *ctx, int mask)
{
+ unsigned n;
if (unlikely(!ctx))
return 0;
- unsigned n = ctx->major;
+ n = ctx->major;
switch (audit_classify_syscall(ctx->arch, n)) {
case 0: /* native */
if ((mask & AUDIT_PERM_WRITE) &&