From efdab17441bac2636cb4898eb8810cebee66620e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 10 Mar 1995 20:47:39 +0000 Subject: [PATCH] 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 --- src/lib/krb5/asn.1/ChangeLog | 6 ++++++ src/lib/krb5/asn.1/asn1buf.c | 2 +- src/lib/krb5/asn.1/asn1buf.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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. */ -- 2.26.2