From: Theodore Tso Date: Sat, 23 Sep 1995 02:29:08 +0000 (+0000) Subject: Remove the (int) cast, since you can't take address of a value which X-Git-Tag: krb5-1.0-beta6~1030 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a08d58dc59f11f0da4dbbdd86088b950877ddc8;p=krb5.git 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6834 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 4f8d0e251..f8f57ac7e 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,11 @@ +Fri Sep 22 22:27:33 1995 Theodore Y. Ts'o + + * 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 diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 452672add..93db3055e 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -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; diff --git a/src/lib/krb5/asn.1/krb5_decode.c b/src/lib/krb5/asn.1/krb5_decode.c index 8196fdf3f..133a7cac3 100644 --- a/src/lib/krb5/asn.1/krb5_decode.c +++ b/src/lib/krb5/asn.1/krb5_decode.c @@ -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;