From: John Kohl Date: Tue, 30 Jan 1990 17:19:19 +0000 (+0000) Subject: use external prototypes X-Git-Tag: krb5-1.0-alpha2~1175 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf0c1d14cc6a9dd57d47504ea34902d1d1c33d14;p=krb5.git use external prototypes fix prototype of encoder cast args to free git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@208 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/encode.c b/src/lib/krb5/asn.1/encode.c index d9a546982..fc67f22d1 100644 --- a/src/lib/krb5/asn.1/encode.c +++ b/src/lib/krb5/asn.1/encode.c @@ -26,13 +26,15 @@ static char rcsid_encode_c[] = #include "encode.h" #include "asn1defs.h" +#include + #include krb5_error_code encode_generic(input, data_out, encoder, translator, free_translation) krb5_pointer input; register krb5_data **data_out; -int (*encoder) PROTOTYPE((PE, int, int, char *, krb5_pointer)); +int (*encoder) PROTOTYPE((PE *, int, int, char *, krb5_pointer)); krb5_pointer (*translator) PROTOTYPE((krb5_pointer, int * )); void (*free_translation) PROTOTYPE((krb5_pointer )); { @@ -70,14 +72,14 @@ void (*free_translation) PROTOTYPE((krb5_pointer )); (*data_out)->data = malloc(ps_get_abs(pe)); if (!(*data_out)->data) { error = ENOMEM; - free(*data_out); + free((char *)*data_out); *data_out = 0; goto errout; } if (pe2ps(ps, pe) != OK || ps_flush(ps) != OK) { error = ps->ps_errno + ISODE_50_PS_ERR_NONE; free((*data_out)->data); - free(*data_out); + free((char *)*data_out); *data_out = 0; goto errout; }