diff options
| author | Dave Jones <davej@codemonkey.org.uk> | 2002-12-31 01:28:13 -0100 |
|---|---|---|
| committer | Dave Jones <davej@codemonkey.org.uk> | 2002-12-31 01:28:13 -0100 |
| commit | fd5a038b3e8a520465d230df4d3df28d21c36f3a (patch) | |
| tree | 2e3a3104a6a45bc207a98b1b7e6722e94d80f1dd /crypto | |
| parent | 3c363821bedf97dbeba6cf39593eddd6d39fb551 (diff) | |
Fix up numerous '`xxxxx' is not at beginning of declaration' style warnings.
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/blowfish.c | 4 | ||||
| -rw-r--r-- | crypto/des.c | 6 | ||||
| -rw-r--r-- | crypto/sha1.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/crypto/blowfish.c b/crypto/blowfish.c index 54e98a86b248..f7f5eb756a12 100644 --- a/crypto/blowfish.c +++ b/crypto/blowfish.c @@ -31,7 +31,7 @@ struct bf_ctx { u32 s[1024]; }; -const static u32 bf_pbox[16 + 2] = { +static const u32 bf_pbox[16 + 2] = { 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, @@ -39,7 +39,7 @@ const static u32 bf_pbox[16 + 2] = { 0x9216d5d9, 0x8979fb1b, }; -const static u32 bf_sbox[256 * 4] = { +static const u32 bf_sbox[256 * 4] = { 0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7, 0xb8e1afed, 0x6a267e96, 0xba7c9045, 0xf12c7f99, 0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16, diff --git a/crypto/des.c b/crypto/des.c index ed85916730b0..08ca675c24f7 100644 --- a/crypto/des.c +++ b/crypto/des.c @@ -46,7 +46,7 @@ struct des3_ede_ctx { u32 expkey[DES3_EDE_EXPKEY_WORDS]; }; -const static u32 des_keymap[] = { +static const u32 des_keymap[] = { 0x02080008, 0x02082000, 0x00002008, 0x00000000, 0x02002000, 0x00080008, 0x02080000, 0x02082008, 0x00000008, 0x02000000, 0x00082000, 0x00002008, @@ -184,7 +184,7 @@ const static u32 des_keymap[] = { 0x20000000, 0x20208000, 0x00000080, 0x20008080, }; -const static u8 rotors[] = { +static const u8 rotors[] = { 34, 13, 5, 46, 47, 18, 32, 41, 11, 53, 33, 20, 14, 36, 30, 24, 49, 2, 15, 37, 42, 50, 0, 21, 38, 48, 6, 26, 39, 4, 52, 25, 12, 27, 31, 40, @@ -266,7 +266,7 @@ const static u8 rotors[] = { 49, 10, 21, 22, 16, 44, 28, 0, 51, 15, 2, 36, }; -const static u8 parity[] = { +static const u8 parity[] = { 8,1,0,8,0,8,8,0,0,8,8,0,8,0,2,8,0,8,8,0,8,0,0,8,8,0,0,8,0,8,8,3, 0,8,8,0,8,0,0,8,8,0,0,8,0,8,8,0,8,0,0,8,0,8,8,0,0,8,8,0,8,0,0,8, 0,8,8,0,8,0,0,8,8,0,0,8,0,8,8,0,8,0,0,8,0,8,8,0,0,8,8,0,8,0,0,8, diff --git a/crypto/sha1.c b/crypto/sha1.c index f3a56d838ea4..012d872d4477 100644 --- a/crypto/sha1.c +++ b/crypto/sha1.c @@ -107,7 +107,7 @@ static void sha1_transform(u32 *state, const u8 *in) static void sha1_init(void *ctx) { struct sha1_ctx *sctx = ctx; - const static struct sha1_ctx initstate = { + static const struct sha1_ctx initstate = { 0, { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 }, { 0, } @@ -144,7 +144,7 @@ static void sha1_final(void* ctx, u8 *out) u32 i, j, index, padlen; u64 t; u8 bits[8] = { 0, }; - const static u8 padding[64] = { 0x80, }; + static const u8 padding[64] = { 0x80, }; t = sctx->count; bits[7] = 0xff & t; t>>=8; |
