From a809b89b6d0254ae542db133f5afba67ce349db1 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 19 Apr 1990 10:40:47 +0000 Subject: [PATCH] add const to function signatures where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@498 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/asn.1/encode.h | 4 ++-- src/lib/krb5/asn.1/decode.c | 2 +- src/lib/krb5/asn.1/encode.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/krb5/asn.1/encode.h b/src/include/krb5/asn.1/encode.h index 044927f4c..b2f8ec1b5 100644 --- a/src/include/krb5/asn.1/encode.h +++ b/src/include/krb5/asn.1/encode.h @@ -23,13 +23,13 @@ typedef int (*decoder_func) PROTOTYPE((PE, int, int, char *, krb5_pointer)); /* encode.c */ krb5_error_code encode_generic - PROTOTYPE((krb5_pointer, + PROTOTYPE((const krb5_pointer, krb5_data **, int (* )PROTOTYPE ((PE *,int,int,char *,krb5_pointer )), krb5_pointer (* )PROTOTYPE ((krb5_pointer,int *)), void (* )PROTOTYPE ((krb5_pointer )))); krb5_error_code decode_generic - PROTOTYPE((krb5_data *, + PROTOTYPE((const krb5_data *, krb5_pointer *, int (* )PROTOTYPE ((PE,int,int,char *,krb5_pointer )), krb5_pointer (* )PROTOTYPE ((krb5_pointer,int *)), diff --git a/src/lib/krb5/asn.1/decode.c b/src/lib/krb5/asn.1/decode.c index 9127f99c1..9ba328c12 100644 --- a/src/lib/krb5/asn.1/decode.c +++ b/src/lib/krb5/asn.1/decode.c @@ -30,7 +30,7 @@ static char rcsid_decode_c[] = krb5_error_code decode_generic(input, output, decoder, translator, free_translation) -krb5_data *input; +const krb5_data *input; register krb5_pointer *output; int (*decoder) PROTOTYPE((PE, int, int, char *, krb5_pointer)); krb5_pointer (*translator) PROTOTYPE((krb5_pointer, int * )); diff --git a/src/lib/krb5/asn.1/encode.c b/src/lib/krb5/asn.1/encode.c index 31bb65aa2..35f47966a 100644 --- a/src/lib/krb5/asn.1/encode.c +++ b/src/lib/krb5/asn.1/encode.c @@ -31,7 +31,7 @@ static char rcsid_encode_c[] = krb5_error_code encode_generic(input, data_out, encoder, translator, free_translation) -krb5_pointer input; +const krb5_pointer input; register krb5_data **data_out; int (*encoder) PROTOTYPE((PE *, int, int, char *, krb5_pointer)); krb5_pointer (*translator) PROTOTYPE((krb5_pointer, int * )); -- 2.26.2