From: Theodore Tso Date: Fri, 10 Mar 1995 20:47:39 +0000 (+0000) Subject: Make the second argument of asn1buf_insert_octet be an int, instead of X-Git-Tag: krb5-1.0-beta5~565 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efdab17441bac2636cb4898eb8810cebee66620e;p=krb5.git Make the second argument of asn1buf_insert_octet be an int, instead of asn1_octet. ANSI C narrow types screws us again.... (The RS/6000 compiler blew out until this was fixed....) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5107 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 6f2574c6c..33f07a9c5 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 10 15:39:24 1995 Theodore Y. Ts'o (tytso@kenmore) + + * asn1buf.c. asn1buf.h (asn1buf_insert_octet): Make the second + argument of asn1buf_insert_octet be an int, instead of + asn1_octet. ANSI C narrow types screws us again.... + Tue Mar 7 21:40:18 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: changed library name for the PC. diff --git a/src/lib/krb5/asn.1/asn1buf.c b/src/lib/krb5/asn.1/asn1buf.c index d831d785e..98aa65f85 100644 --- a/src/lib/krb5/asn.1/asn1buf.c +++ b/src/lib/krb5/asn.1/asn1buf.c @@ -103,7 +103,7 @@ asn1_error_code INTERFACE asn1buf_destroy(buf) asn1_error_code INTERFACE asn1buf_insert_octet(buf, o) asn1buf * buf; - const asn1_octet o; + const int o; { asn1_error_code retval; diff --git a/src/lib/krb5/asn.1/asn1buf.h b/src/lib/krb5/asn.1/asn1buf.h index cd4021210..067bbf609 100644 --- a/src/lib/krb5/asn.1/asn1buf.h +++ b/src/lib/krb5/asn.1/asn1buf.h @@ -78,7 +78,7 @@ asn1_error_code INTERFACE asn1buf_destroy /* effects Deallocates **buf, sets *buf to NULL. */ asn1_error_code INTERFACE asn1buf_insert_octet - PROTOTYPE((asn1buf *buf, const asn1_octet o)); + PROTOTYPE((asn1buf *buf, const int o)); /* requires *buf is allocated effects Inserts o into the buffer *buf, expanding the buffer if necessary. Returns ENOMEM memory is exhausted. */