Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4bacefb authored by Cordelia's avatar Cordelia Committed by Al Viro
Browse files

[PATCH] audit: Moved variable declaration to beginning of function



got rid of compilation warning:
ISO C90 forbids mixed declarations and code

Signed-off-by: default avatarCordelia Sam <cordesam@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bef69ea0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) &&