From: Theodore Tso Date: Thu, 21 Mar 1996 03:40:28 +0000 (+0000) Subject: Fix Windows lint flames. (16bit vs. 32bit issues) X-Git-Tag: krb5-1.0-beta6~316 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a2c3690c4652d46efac2f80554f694a32e7e1f2;p=krb5.git Fix Windows lint flames. (16bit vs. 32bit issues) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7687 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index d9910561e..cbfdcf37e 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 20 22:33:40 1996 Theodore Y. Ts'o + + * u_nfold.c (mit_des_n_fold): + * d3_str2ky.c (mit_des3_string_to_key): Fix Windows lint flames. + Mon Mar 11 11:03:23 1996 Ezra Peisach * new_rn_key.c (mit_des_generate_random_block): Add const keywrod diff --git a/src/lib/crypto/des/d3_str2ky.c b/src/lib/crypto/des/d3_str2ky.c index 8e64ad4d9..c2a27901b 100644 --- a/src/lib/crypto/des/d3_str2ky.c +++ b/src/lib/crypto/des/d3_str2ky.c @@ -43,11 +43,11 @@ krb5_keyblock FAR * keyblock; const krb5_data FAR * data; const krb5_data FAR * salt; { - register char *str, *copystr; - register mit_des_cblock *key; - register int j; + char *copystr; + mit_des_cblock *key; + unsigned int j; - register long length; + int length; mit_des3_key_schedule ks; krb5_enctype enctype = eblock->crypto_entry->proto_enctype; diff --git a/src/lib/crypto/des/u_nfold.c b/src/lib/crypto/des/u_nfold.c index 63eb0e29a..38829e0ed 100644 --- a/src/lib/crypto/des/u_nfold.c +++ b/src/lib/crypto/des/u_nfold.c @@ -66,8 +66,7 @@ mit_des_n_fold(inbuf, inlen, outbuf, outlen) #endif do { - int j; - register unsigned int k; + unsigned int j, k; /* Rotate input */ k = ((bytes/inlen) * ROTATE_VALUE) % (inlen*8); @@ -84,8 +83,9 @@ mit_des_n_fold(inbuf, inlen, outbuf, outlen) } j = bytes % outlen; while (k) { - if (j-- == 0) - j += outlen; + if (j == 0) + j = outlen; + j--; k += outbuf[j]; outbuf[j] = k & 0xff; k >>= 8;