From: mdw Date: Sat, 14 Oct 2000 17:13:19 +0000 (+0000) Subject: Fix some compile errors. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/7a28dc19bd4e85b76f778eecd6969cc65c63cdb1 Fix some compile errors. --- diff --git a/rijndael-mktab.c b/rijndael-mktab.c index b07207b..f5a73b8 100644 --- a/rijndael-mktab.c +++ b/rijndael-mktab.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: rijndael-mktab.c,v 1.2 2000/06/18 23:12:15 mdw Exp $ + * $Id: rijndael-mktab.c,v 1.3 2000/10/14 17:13:19 mdw Exp $ * * Build precomputed tables for the Rijndael block cipher * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: rijndael-mktab.c,v $ + * Revision 1.3 2000/10/14 17:13:19 mdw + * Fix some compile errors. + * * Revision 1.2 2000/06/18 23:12:15 mdw * Change typesetting of Galois Field names. * @@ -218,7 +221,7 @@ static void ubox(void) /* --- Round constants --- */ -void rcon(void) +static void rcon(void) { unsigned r = 1; int i; @@ -288,7 +291,7 @@ int main(void) { ", stdout); for (j = 0; j < 4; j++) { for (i = 0; i < 256; i++) { - printf("0x%08x", t[j][i]); + printf("0x%08lx", (unsigned long)t[j][i]); if (i == 255) { if (j == 3) fputs(" } \\\n}\n\n", stdout); @@ -308,7 +311,7 @@ int main(void) { ", stdout); for (j = 0; j < 4; j++) { for (i = 0; i < 256; i++) { - printf("0x%08x", ti[j][i]); + printf("0x%08lx", (unsigned long)ti[j][i]); if (i == 255) { if (j == 3) fputs(" } \\\n}\n\n", stdout); @@ -333,7 +336,7 @@ int main(void) { ", stdout); for (j = 0; j < 4; j++) { for (i = 0; i < 256; i++) { - printf("0x%08x", u[j][i]); + printf("0x%08lx", (unsigned long)u[j][i]); if (i == 255) { if (j == 3) fputs(" } \\\n}\n\n", stdout);