From 948496d4215606f001def92cab530f58c5b5d461 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 2 May 1990 22:30:57 +0000 Subject: [PATCH] fix confusion about varargs in com_err_proc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@688 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/main.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/kdc/main.c b/src/kdc/main.c index 58072a940..95aa41635 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -49,24 +49,15 @@ static char rcsid_main_c[] = #include "kdc5_err.h" static void -#ifdef __STDC__ -kdc_com_err_proc(const char *whoami, long code, const char * format, ...) -#else -kdc_com_err_proc(whoami, code, format, va_alist) +kdc_com_err_proc(whoami, code, format, pvar) const char *whoami; long code; const char *format; - va_dcl -#endif + va_list pvar; { /* XXX need some way to do this better... */ - va_list pvar; + extern void vfprintf PROTOTYPE((FILE *, const char *, va_list)); -#ifdef __STDC__ - va_start(pvar, format); -#else - va_start(pvar); -#endif if (whoami) { fputs(whoami, stderr); @@ -99,7 +90,6 @@ kdc_com_err_proc(whoami, code, format, va_alist) syslog(LOG_ERR, "%s", error_message(code)); } - va_end(pvar); return; } -- 2.26.2