From: ben Date: Sun, 5 Jan 2003 13:57:09 +0000 (+0000) Subject: SC (Apple's 68K C compiler) seems to treat tentative definitions of complete X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/b62e3a67eb1269fc9d1915f74323546a195e4261 SC (Apple's 68K C compiler) seems to treat tentative definitions of complete arrya as full definitions, and hence gets upset when it finds a full definition later. This is a bug (see K&R2 A10.2), but an easy one to work around by making the tentative definitions incomplete, so I've done that. git-svn-id: svn://svn.tartarus.org/sgt/putty@2462 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sshaes.c b/sshaes.c index 1dfb5f92..ef46c120 100644 --- a/sshaes.c +++ b/sshaes.c @@ -61,9 +61,9 @@ struct AESContext { int Nb, Nr; }; -static const unsigned char Sbox[256], Sboxinv[256]; -static const word32 E0[256], E1[256], E2[256], E3[256]; -static const word32 D0[256], D1[256], D2[256], D3[256]; +static const unsigned char Sbox[], Sboxinv[]; +static const word32 E0[], E1[], E2[], E3[]; +static const word32 D0[], D1[], D2[], D3[]; /* * Common macros in both the encryption and decryption routines.