From: Ken Raeburn Date: Mon, 2 Sep 2002 20:56:26 +0000 (+0000) Subject: * com_err.c (default_com_err_proc, com_err_va, set_com_err_hook): Define with prototy... X-Git-Tag: krb5-1.3-alpha1~440 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bdfead10df7a773e007b736219d07eeeb092161;p=krb5.git * com_err.c (default_com_err_proc, com_err_va, set_com_err_hook): Define with prototype syntax git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14809 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 2ca669ced..dd26b00db 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,8 @@ +2002-09-02 Ken Raeburn + + * com_err.c (default_com_err_proc, com_err_va, set_com_err_hook): + Define with prototype syntax. + 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/util/et/com_err.c b/src/util/et/com_err.c index c59cad7f0..ef03d1232 100644 --- a/src/util/et/com_err.c +++ b/src/util/et/com_err.c @@ -36,13 +36,7 @@ static void MacMessageBox(char *errbuf); static /*@null@*/ et_old_error_hook_func com_err_hook = 0; static void default_com_err_proc (const char *whoami, errcode_t code, - const char *fmt, va_list ap); - -static void default_com_err_proc(whoami, code, fmt, ap) - const char *whoami; - errcode_t code; - const char *fmt; - va_list ap; + const char *fmt, va_list ap) { #if defined(_WIN32) || defined(macintosh) @@ -98,11 +92,10 @@ static void default_com_err_proc(whoami, code, fmt, ap) #endif } -void KRB5_CALLCONV com_err_va(whoami, code, fmt, ap) - const char *whoami; - errcode_t code; - const char *fmt; - va_list ap; +void KRB5_CALLCONV com_err_va(const char *whoami, + errcode_t code, + const char *fmt, + va_list ap) { if (!com_err_hook) default_com_err_proc(whoami, code, fmt, ap); @@ -112,8 +105,8 @@ void KRB5_CALLCONV com_err_va(whoami, code, fmt, ap) void KRB5_CALLCONV_C com_err(const char *whoami, - errcode_t code, - const char *fmt, ...) + errcode_t code, + const char *fmt, ...) { va_list ap; @@ -123,8 +116,7 @@ void KRB5_CALLCONV_C com_err(const char *whoami, } #if !(defined(_WIN32)) -et_old_error_hook_func set_com_err_hook (new_proc) - et_old_error_hook_func new_proc; +et_old_error_hook_func set_com_err_hook (et_old_error_hook_func new_proc) { et_old_error_hook_func x = com_err_hook;