mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
bef69ea0dc
commit
c4bacefb7a
1 changed files with 2 additions and 1 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue