diff options
author | 2002-10-04 16:39:26 +0000 | |
---|---|---|
committer | 2002-10-04 16:39:26 +0000 | |
commit | ea0e573c9ac533ec007d1c534126bc89a5b06257 (patch) | |
tree | c9ddf98fcdf4426a7c4101b15ecde5e56fa52168 | |
parent | make the snakes fart through (diff) | |
download | wireguard-openbsd-ea0e573c9ac533ec007d1c534126bc89a5b06257.tar.xz wireguard-openbsd-ea0e573c9ac533ec007d1c534126bc89a5b06257.zip |
enchrist into stdarg
-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); |