Commit 68076a0e authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe

[PATCH] arc4.c compile fix for older gcc's

Declarations come before statements, please.

Current gcc warns about this too, bless them:

crypto/arc4.c: In function `arc4_crypt':
crypto/arc4.c:65: warning: ISO C90 forbids mixed declarations and code
parent bdfe6862
......@@ -59,10 +59,11 @@ static void arc4_crypt(void *ctx_arg, u8 *out, const u8 *in)
u8 *const S = ctx->S;
u8 x = ctx->x;
u8 y = ctx->y;
u8 a, b;
u8 a = S[x];
a = S[x];
y = (y + a) & 0xff;
u8 b = S[y];
b = S[y];
S[x] = b;
S[y] = a;
x = (x + 1) & 0xff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment