From 07a0e2efde73a7d736dd8f2e042781df95cd0823 Mon Sep 17 00:00:00 2001 From: kan Date: Tue, 15 Apr 2003 18:59:22 +0000 Subject: Remove the only varargs.h consumer in the tree. Use stdarg.h instead. --- usr.bin/window/wwprintf.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/usr.bin/window/wwprintf.c b/usr.bin/window/wwprintf.c index 43df5a7..1c74981 100644 --- a/usr.bin/window/wwprintf.c +++ b/usr.bin/window/wwprintf.c @@ -41,18 +41,15 @@ static char rcsid[] = #endif /* not lint */ #include "ww.h" -#include +#include -/*VARARGS2*/ -wwprintf(w, fmt, va_alist) -struct ww *w; -char *fmt; -va_dcl +void +wwprintf(struct ww *w, char *fmt, ...) { char buf[1024]; va_list ap; - va_start(ap); + va_start(ap, fmt); /* buffer can overflow */ (void) wwwrite(w, buf, vsprintf(buf, fmt, ap)); va_end(ap); -- cgit v1.1