diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 16:39:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 16:39:27 +0000 |
commit | cbe217e6297b84b47e0c8d75c98c01a30ee82331 (patch) | |
tree | 2e2cb63db9e5568e543d2de01640ca4c100e4e24 /usr.bin/window/wwprintf.c | |
parent | 703bd20dc479c92d66926ca15e195d23a2c1ab60 (diff) |
enchrist into stdarg
Diffstat (limited to 'usr.bin/window/wwprintf.c')
-rw-r--r-- | usr.bin/window/wwprintf.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/window/wwprintf.c b/usr.bin/window/wwprintf.c index 47b17d3fd71..4329cbf08ca 100644 --- a/usr.bin/window/wwprintf.c +++ b/usr.bin/window/wwprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wwprintf.c,v 1.3 1997/02/25 00:05:01 downsj Exp $ */ +/* $OpenBSD: wwprintf.c,v 1.4 2002/10/04 16:39:26 mickey Exp $ */ /* $NetBSD: wwprintf.c,v 1.3 1995/09/28 10:35:44 tls Exp $ */ /* @@ -41,23 +41,19 @@ #if 0 static char sccsid[] = "@(#)wwprintf.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: wwprintf.c,v 1.3 1997/02/25 00:05:01 downsj Exp $"; +static char rcsid[] = "$OpenBSD: wwprintf.c,v 1.4 2002/10/04 16:39:26 mickey Exp $"; #endif #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 +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); |