From: Ezra Peisach Date: Thu, 21 Jun 2001 13:42:06 +0000 (+0000) Subject: * t_shs.c: Cast arguments to match printf format. Declare main X-Git-Tag: krb5-1.3-alpha1~1343 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01f351d144e502420841a6c3f4918a97d5eec2a1;p=krb5.git * t_shs.c: Cast arguments to match printf format. Declare main as returning int. Comment out unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13443 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/sha1/ChangeLog b/src/lib/crypto/sha1/ChangeLog index 4b0425dbe..b626bad8f 100644 --- a/src/lib/crypto/sha1/ChangeLog +++ b/src/lib/crypto/sha1/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Ezra Peisach + + * t_shs.c: Cast arguments to match printf format. Declare main as + returning int. Comment out unused variables. + 2001-03-14 Ken Raeburn * shs.h: Stop using KRB5_PROTOTYPE. diff --git a/src/lib/crypto/sha1/t_shs.c b/src/lib/crypto/sha1/t_shs.c index da55992ec..5d7d86a4c 100644 --- a/src/lib/crypto/sha1/t_shs.c +++ b/src/lib/crypto/sha1/t_shs.c @@ -41,11 +41,11 @@ int shsTestLevel; if (fail) { printf("\nExpected: "); for (i = 0; i < 5; i++) { - printf("%8.8lx ", shsTestResults[shsTestLevel][i]); + printf("%8.8lx ", (unsigned long) shsTestResults[shsTestLevel][i]); } printf("\nGot: "); for (i = 0; i < 5; i++) { - printf("%8.8lx ", shsInfo->digest[i]); + printf("%8.8lx ", (unsigned long) shsInfo->digest[i]); } printf("\n"); return( -1 ); @@ -53,12 +53,15 @@ int shsTestLevel; return( 0 ); } +int main() { SHS_INFO shsInfo; unsigned int i; +#if 0 time_t secondCount; BYTE data[ 200 ]; +#endif /* Make sure we've got the endianness set right. If the machine is big-endian (up to 64 bits) the following value will be signed,