aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/window/wwprintf.c
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-04-15 18:59:22 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-04-15 18:59:22 +0000
commit8e04260639fcb3abbf2f3399fb17dedada132cb1 (patch)
tree4cecfd5ab342cea39cc5c203a0076ab1bcf0182d /usr.bin/window/wwprintf.c
parent2d5506c942804b464326565c58337830dd17a678 (diff)
Remove the only varargs.h consumer in the tree. Use stdarg.h instead.
Notes
Notes: svn path=/head/; revision=113525
Diffstat (limited to 'usr.bin/window/wwprintf.c')
-rw-r--r--usr.bin/window/wwprintf.c11
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);