$NetBSD: patch-ad,v 1.1 2004/01/23 11:43:33 agc Exp $ --- tech/tech.c 2004/01/23 09:51:59 1.1 +++ tech/tech.c 2004/01/23 09:52:54 @@ -31,8 +31,8 @@ #include "utils/malloc.h" #ifndef NO_VARARGS -#include -#endif NO_VARARGS +#include +#endif /* NO_VARARGS */ global char *TechDefault = NULL; @@ -415,15 +415,12 @@ /*VARARGS0*/ void -TechError(va_alist) -va_dcl +TechError(char *fmt, ...) { va_list args; - char *fmt; TechPrintLine(); - va_start(args); - fmt = va_arg(args, char *); + va_start(args, fmt); (void) GrVfprintf(stderr, fmt, args); va_end(args); }