diff options
Diffstat (limited to 'usr.bin/window/wwprintf.c')
-rw-r--r-- | usr.bin/window/wwprintf.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/window/wwprintf.c b/usr.bin/window/wwprintf.c index 43df5a76b72f..1c74981aa775 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 <varargs.h> +#include <stdarg.h> -/*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); |