=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/wwprintf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/window/Attic/wwprintf.c 1997/02/25 00:05:01 1.3 +++ src/usr.bin/window/Attic/wwprintf.c 2002/10/04 16:39:26 1.4 @@ -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 +#include -/*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);