diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 13:42:06 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 13:42:06 +0000 |
commit | 01f351d144e502420841a6c3f4918a97d5eec2a1 (patch) | |
tree | 663ed39f2297d7c9b8ddfbb5d10683ed2bb2a353 /src | |
parent | 835e94d28d9677fab11e87b2e3f527fa07c6002c (diff) | |
download | krb5-01f351d144e502420841a6c3f4918a97d5eec2a1.tar.gz krb5-01f351d144e502420841a6c3f4918a97d5eec2a1.tar.xz krb5-01f351d144e502420841a6c3f4918a97d5eec2a1.zip |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/sha1/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/crypto/sha1/t_shs.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/crypto/sha1/ChangeLog b/src/lib/crypto/sha1/ChangeLog index 4b0425dbea..b626bad8f2 100644 --- a/src/lib/crypto/sha1/ChangeLog +++ b/src/lib/crypto/sha1/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Ezra Peisach <epeisach@mit.edu> + + * t_shs.c: Cast arguments to match printf format. Declare main as + returning int. Comment out unused variables. + 2001-03-14 Ken Raeburn <raeburn@mit.edu> * 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 da55992ec9..5d7d86a4c9 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, |