diff options
author | Andrew Morton <akpm@osdl.org> | 2004-03-06 16:02:47 -0800 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2004-03-06 16:02:47 -0800 |
commit | 68076a0e0e2aef1b34af5fe5c4261899ea924ac4 (patch) | |
tree | 888850094de9e8c653077cbd80779b0e384a19fd /crypto | |
parent | bdfe6862e9f72f25e5640b4fc26902cd1f80fc13 (diff) | |
download | history-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.c | 5 |
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; |