From 39a3273c834fb1172f2a3cbf68227bda42081c39 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 6 Oct 1995 04:47:55 +0000 Subject: [PATCH] Change types of krb5_max_enctype and krb5_max_cksumtype to be krb5_enctype and krb5_cksumtype, to fix some gcc -Wall flames. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6940 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/ChangeLog | 6 ++++++ src/lib/crypto/cryptoconf.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index 5cc976389..c426a6033 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,9 @@ +Thu Oct 5 21:32:33 1995 Theodore Y. Ts'o + + * cryptoconf.c: Change types of krb5_max_enctype and + krb5_max_cksumtype to be krb5_enctype and krb5_cksumtype, + to fix some gcc -Wall flames. + Mon Oct 2 10:34:12 1995 Ezra Peisach * configure.in (V5_MAKE_SHARED_LIB): Change for version 0.1 of diff --git a/src/lib/crypto/cryptoconf.c b/src/lib/crypto/cryptoconf.c index 53747efa9..df71493f3 100644 --- a/src/lib/crypto/cryptoconf.c +++ b/src/lib/crypto/cryptoconf.c @@ -109,7 +109,7 @@ krb5_cs_table_entry * NEAR krb5_enctype_array[] = { RAW_DES_CBC_CSENTRY, /* ETYPE_RAW_DES_CBC */ }; -int krb5_max_enctype = sizeof(krb5_enctype_array)/sizeof(krb5_enctype_array[0]) - 1; +krb5_enctype krb5_max_enctype = sizeof(krb5_enctype_array)/sizeof(krb5_enctype_array[0]) - 1; krb5_checksum_entry * NEAR krb5_cksumarray[] = { 0, @@ -123,6 +123,6 @@ krb5_checksum_entry * NEAR krb5_cksumarray[] = { MD5_DES_CKENTRY /* CKSUMTYPE_RSA_MD5_DES */ }; -int krb5_max_cksum = sizeof(krb5_cksumarray)/sizeof(krb5_cksumarray[0]); +krb5_cksumtype krb5_max_cksum = sizeof(krb5_cksumarray)/sizeof(krb5_cksumarray[0]); #undef _DES_DONE__ -- 2.26.2