Change types of krb5_max_enctype and krb5_max_cksumtype to be
authorTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 02:45:47 +0000 (02:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 02:45:47 +0000 (02:45 +0000)
krb5_enctype and krb5_cksumtype, to fix some gcc -Wall flames.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6934 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/krb5.hin

index d9aa22dfd1537064a9d0208afcbab42879f69057..0df71446408c238b85b49b83620cde8333050ffa 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct  5 21:31:10 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * krb5.hin: Change types of krb5_max_enctype and
+               krb5_max_cksumtype to be krb5_enctype and krb5_cksumtype,
+               to fix some gcc -Wall flames.
+
 Thu Oct  5 07:34:51 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * k5-int.h: Add profile_secure to context.
index 11de954e230983565151a72ab37acb45dc559a49..ff87f4ed4a00e003f7ba2de9f539d5bc9889c6aa 100644 (file)
@@ -434,15 +434,15 @@ extern int krb5_max_cryptosystem;         /* max entry in array */
    the same entries as krb5_csarray */
 /* XXX what if a given enctype works for several etypes? */
 extern krb5_cs_table_entry * NEAR krb5_enctype_array[];
-extern int krb5_max_enctype;           /* max entry in array */
+extern krb5_enctype krb5_max_enctype;          /* max entry in array */
 
 /* This array is indexed by checksum type */
 extern krb5_checksum_entry * NEAR krb5_cksumarray[];
-extern int krb5_max_cksum;             /* max entry in array */
+extern krb5_cksumtype krb5_max_cksum;          /* max entry in array */
 
-#define valid_enctype(ktype)     ((((int) (ktype)) <= krb5_max_enctype) && ((ktype) > 0) && krb5_enctype_array[ktype])
+#define valid_enctype(ktype)     ((((ktype)) <= krb5_max_enctype) && ((ktype) > 0) && krb5_enctype_array[ktype])
 
-#define valid_cksumtype(cktype)     ((((int) (cktype)) <= krb5_max_cksum) && ((cktype) > 0) && krb5_cksumarray[cktype])
+#define valid_cksumtype(cktype)     ((((cktype)) <= krb5_max_cksum) && ((cktype) > 0) && krb5_cksumarray[cktype])
 
 #define is_coll_proof_cksum(cktype) (krb5_cksumarray[cktype]->is_collision_proof)
 #define is_keyed_cksum(cktype) (krb5_cksumarray[cktype]->uses_key)