]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
SC (Apple's 68K C compiler) seems to treat tentative definitions of complete
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 5 Jan 2003 13:57:09 +0000 (13:57 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
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.

[originally from svn r2462]

sshaes.c

index 1dfb5f923e903481c2154cee0f046b704dd1c84b..ef46c1202f55342d9bfd707694fc429695413664 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.