SC (Apple's 68K C compiler) seems to treat tentative definitions of complete
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Jan 2003 13:57:09 +0000 (13:57 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Jan 2003 13:57:09 +0000 (13:57 +0000)
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

sshaes.c

index 1dfb5f9..ef46c12 100644 (file)
--- 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.