Remove the (int) cast, since you can't take address of a value which
authorTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 02:29:08 +0000 (02:29 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 02:29:08 +0000 (02:29 +0000)
has been casted.  Instead we change the underlying type in the
structure to be an int.

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

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_k_decode.c
src/lib/krb5/asn.1/krb5_decode.c

index 4f8d0e2515d50497ee404109f49d39b2bd10d525..f8f57ac7e9cb27d1045bbe8777efe38cc4e2220c 100644 (file)
@@ -1,3 +1,11 @@
+Fri Sep 22 22:27:33 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * asn1_k_decode.c (asn1_decode_etype_info_entry): 
+       * krb5_decode.c (decode_krb5_alt_method): Remove the (int) cast,
+               since you can't take address of a value which has been
+               casted.  Instead we change the underlying type in the
+               structure to be an int.
+
 Wed Sep 13 10:51:31 1995 Keith Vetter (keithv@fusion.com)
 
         * asn1_k_decode.c, asn1_k_encode.c, krb5_dec.c, krb5_enc.c: 32
index 452672addfc19181c398968050f1969ccc49bbe1..93db3055e05cc4ae36e15775eb4341f0873416df 100644 (file)
@@ -663,7 +663,7 @@ asn1_error_code asn1_decode_etype_info_entry(buf, val)
   { begin_structure();
     get_field(val->etype,0,asn1_decode_ui_4);
     if (tagnum == 1) {
-           get_lenfield((int) val->length,val->salt,1,asn1_decode_octetstring);
+           get_lenfield(val->length,val->salt,1,asn1_decode_octetstring);
     } else {
            val->length = 0;
            val->salt = 0;
index 8196fdf3fc8fddbd2cd3a911755dd3f90e7dfadc..133a7cac314c62df842524517b10ad27a62ec125 100644 (file)
@@ -700,9 +700,9 @@ krb5_error_code decode_krb5_alt_method(code, rep)
   setup(free);
   alloc_field(*rep,krb5_alt_method);
   { begin_structure();
-    get_field((int) (*rep)->method,0,asn1_decode_int);
+    get_field((*rep)->method,0,asn1_decode_int32);
     if (tagnum == 1) {
-       get_lenfield((int) (*rep)->length,(*rep)->data,1,asn1_decode_octetstring);
+       get_lenfield((*rep)->length,(*rep)->data,1,asn1_decode_octetstring);
     } else {
        (*rep)->length = 0;
        (*rep)->data = 0;