aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-06 16:02:47 -0800
committerJens Axboe <axboe@suse.de>2004-03-06 16:02:47 -0800
commit68076a0e0e2aef1b34af5fe5c4261899ea924ac4 (patch)
tree888850094de9e8c653077cbd80779b0e384a19fd /crypto
parentbdfe6862e9f72f25e5640b4fc26902cd1f80fc13 (diff)
downloadhistory-68076a0e0e2aef1b34af5fe5c4261899ea924ac4.tar.gz
[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
Diffstat (limited to 'crypto')
-rw-r--r--crypto/arc4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/arc4.c b/crypto/arc4.c
index 71a844704aaa16..5a49e6a22e80c3 100644
--- a/crypto/arc4.c
+++ b/crypto/arc4.c
@@ -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;