add const to function signatures where appropriate
authorJohn Kohl <jtkohl@mit.edu>
Thu, 19 Apr 1990 10:40:47 +0000 (10:40 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 19 Apr 1990 10:40:47 +0000 (10:40 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@498 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/asn.1/encode.h
src/lib/krb5/asn.1/decode.c
src/lib/krb5/asn.1/encode.c

index 044927f4c7feac652707ab08b2ebbf1dfb4c0295..b2f8ec1b5f0fc2480bf603042229120dc0ba15a8 100644 (file)
@@ -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 *)),
index 9127f99c1e6603d03ca94ebaa3df0528be857f95..9ba328c1290e5783c2ee091807a4ff73e62b2028 100644 (file)
@@ -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 * ));
index 31bb65aa232de64bf53bf59c4b46452211dbd85a..35f47966a21f3ee1b9f025d744fd7070ab879b80 100644 (file)
@@ -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 * ));