summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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);
OpenPOWER on IntegriCloud