From: John Kohl Date: Mon, 22 Oct 1990 13:44:50 +0000 (+0000) Subject: use const pointer in translator X-Git-Tag: krb5-1.0-alpha2~108 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c2c5f27f5248d8bb574d4cf09592c619a9944c5;p=krb5.git use const pointer in translator git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1303 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/asn.1/encode.h b/src/include/krb5/asn.1/encode.h index a40172f6c..dc1985d53 100644 --- a/src/include/krb5/asn.1/encode.h +++ b/src/include/krb5/asn.1/encode.h @@ -26,7 +26,7 @@ krb5_error_code krb5_encode_generic PROTOTYPE((krb5_const_pointer, krb5_data **, int (* )PROTOTYPE ((PE *,int,int,char *,krb5_pointer )), - krb5_pointer (* )PROTOTYPE ((krb5_pointer,int *)), + krb5_pointer (* )PROTOTYPE ((krb5_const_pointer,int *)), void (* )PROTOTYPE ((krb5_pointer )))); krb5_error_code krb5_decode_generic PROTOTYPE((const krb5_data *, diff --git a/src/lib/krb5/asn.1/encode.c b/src/lib/krb5/asn.1/encode.c index 8caadd841..0f2f44a71 100644 --- a/src/lib/krb5/asn.1/encode.c +++ b/src/lib/krb5/asn.1/encode.c @@ -31,7 +31,7 @@ krb5_encode_generic(input, data_out, encoder, translator, free_translation) krb5_const_pointer input; register krb5_data **data_out; int (*encoder) PROTOTYPE((PE *, int, int, char *, krb5_pointer)); -krb5_pointer (*translator) PROTOTYPE((krb5_pointer, int * )); +krb5_pointer (*translator) PROTOTYPE((krb5_const_pointer, int * )); void (*free_translation) PROTOTYPE((krb5_pointer )); { krb5_pointer isode_out;