From: Ken Raeburn Date: Wed, 18 Sep 2002 20:44:13 +0000 (+0000) Subject: protoize X-Git-Tag: krb5-1.3-alpha1~374 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd7ed72fa6c8b40f35823a830e6c22aeab509ece;p=krb5.git protoize git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14877 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index 715a5e324..d9888e378 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,9 @@ +2002-09-18 Ken Raeburn + + * logger.c (klog_com_err_proc, krb5_klog_init, krb5_klog_close, + severity2string, klog_vsyslog, krb5_klog_syslog, + krb5_klog_reopen): Always define functions in prototype style. + 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index f2c0563b2..69f53a0a4 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -172,11 +172,7 @@ static struct log_entry def_log_entry; * profile. */ static void -klog_com_err_proc(whoami, code, format, ap) - const char *whoami; - long code; - const char *format; - va_list ap; +klog_com_err_proc(const char *whoami, long int code, const char *format, va_list ap) { char outbuf[KRB5_KLOG_MAX_ERRMSG_SIZE]; int lindex; @@ -348,11 +344,7 @@ klog_com_err_proc(whoami, code, format, ap) * where/how to send output. */ krb5_error_code -krb5_klog_init(kcontext, ename, whoami, do_com_err) - krb5_context kcontext; - char *ename; - char *whoami; - krb5_boolean do_com_err; +krb5_klog_init(krb5_context kcontext, char *ename, char *whoami, krb5_boolean do_com_err) { const char *logging_profent[3]; const char *logging_defent[3]; @@ -689,8 +681,7 @@ krb5_klog_init(kcontext, ename, whoami, do_com_err) * krb5_klog_close() - Close the logging context and free all data. */ void -krb5_klog_close(kcontext) - krb5_context kcontext; +krb5_klog_close(krb5_context kcontext) { int lindex; (void) reset_com_err_hook(); @@ -743,8 +734,7 @@ krb5_klog_close(kcontext) * severity2string() - Convert a severity to a string. */ static const char * -severity2string(severity) - int severity; +severity2string(int severity) { int s; const char *ss; @@ -800,10 +790,7 @@ severity2string(severity) * by krb5_klog_init(). */ static int -klog_vsyslog(priority, format, arglist) - int priority; - const char *format; - va_list arglist; +klog_vsyslog(int priority, const char *format, va_list arglist) { char outbuf[KRB5_KLOG_MAX_ERRMSG_SIZE]; int lindex; @@ -925,25 +912,13 @@ klog_vsyslog(priority, format, arglist) return(0); } -#ifdef HAVE_STDARG_H int krb5_klog_syslog(int priority, const char *format, ...) -#else /* HAVE_STDARG_H */ -int -krb5_klog_syslog(priority, format, va_alist) - int priority; - const char *format; - va_dcl -#endif /* HAVE_STDARG_H */ { int retval; va_list pvar; -#ifdef HAVE_STDARG_H va_start(pvar, format); -#else /* HAVE_STDARG_H */ - va_start(pvar); -#endif /* HAVE_STDARG_H */ retval = klog_vsyslog(priority, format, pvar); va_end(pvar); return(retval); @@ -957,8 +932,7 @@ krb5_klog_syslog(priority, format, va_alist) * a new file descriptor for the give filename. */ void -krb5_klog_reopen(kcontext) -krb5_context kcontext; +krb5_klog_reopen(krb5_context kcontext) { int lindex; FILE *f;