=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/main.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/systat/main.c 2002/02/16 21:27:54 1.22 --- src/usr.bin/systat/main.c 2002/02/19 19:39:39 1.23 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.22 2002/02/16 21:27:54 millert Exp $ */ /* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.23 2002/02/19 19:39:39 millert Exp $ */ /* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */ /*- *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: main.c,v 1.22 2002/02/16 21:27:54 millert Exp $"; #endif /* not lint */ #include --- 44,50 ---- #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: main.c,v 1.23 2002/02/19 19:39:39 millert Exp $"; #endif /* not lint */ #include *************** *** 59,64 **** --- 59,65 ---- #include #include #include + #include #include "systat.h" #include "extern.h" *************** *** 300,331 **** gotwinch = 1; } - - #ifdef __STDC__ - #include - #else - #include - #endif - - #ifdef __STDC__ void error(const char *fmt, ...) - #else - void - error(fmt, va_alist) - char *fmt; - va_dcl - #endif { va_list ap; char buf[255]; int oy, ox; - #ifdef __STDC__ - va_start(ap, fmt); - #else - va_start(ap); - #endif if (wnd) { getyx(stdscr, oy, ox); (void) vsnprintf(buf, sizeof buf, fmt, ap); --- 301,314 ---- gotwinch = 1; } void error(const char *fmt, ...) { va_list ap; char buf[255]; int oy, ox; + va_start(ap, fmt); if (wnd) { getyx(stdscr, oy, ox); (void) vsnprintf(buf, sizeof buf, fmt, ap);