diff options
author | kan <kan@FreeBSD.org> | 2003-04-15 18:59:22 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-04-15 18:59:22 +0000 |
commit | 07a0e2efde73a7d736dd8f2e042781df95cd0823 (patch) | |
tree | 4cecfd5ab342cea39cc5c203a0076ab1bcf0182d /usr.bin/window/wwprintf.c | |
parent | 1315d25026be8cd49b9425f3ce363949e05b2afa (diff) | |
download | FreeBSD-src-07a0e2efde73a7d736dd8f2e042781df95cd0823.zip FreeBSD-src-07a0e2efde73a7d736dd8f2e042781df95cd0823.tar.gz |
Remove the only varargs.h consumer in the tree. Use stdarg.h instead.
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 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 <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); |