From d55e9b6ee3e8f5699a39048b4c511e8ace701263 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sat, 24 Jan 2004 22:40:58 +0000 Subject: [PATCH] Use new style variadic functions --- 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 076d6c1cf8..b6d068972e 100644 --- a/usr.bin/window/wwprintf.c +++ b/usr.bin/window/wwprintf.c @@ -35,22 +35,19 @@ * * @(#)wwprintf.c 8.1 (Berkeley) 6/6/93 * $FreeBSD: src/usr.bin/window/wwprintf.c,v 1.1.1.1.14.1 2001/05/17 09:45:01 obrien Exp $ - * $DragonFly: src/usr.bin/window/wwprintf.c,v 1.2 2003/06/17 04:29:34 dillon Exp $ + * $DragonFly: src/usr.bin/window/wwprintf.c,v 1.3 2004/01/24 22:40:58 joerg Exp $ */ #include "ww.h" -#include +#include /*VARARGS2*/ -wwprintf(w, fmt, va_alist) -struct ww *w; -char *fmt; -va_dcl +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); -- 2.41.0