=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/io.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/indent/io.c 2001/01/08 07:14:42 1.4 --- src/usr.bin/indent/io.c 2002/02/19 19:39:38 1.5 *************** *** 1,4 **** ! /* $OpenBSD: io.c,v 1.4 2001/01/08 07:14:42 pjanzen Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. --- 1,4 ---- ! /* $OpenBSD: io.c,v 1.5 2002/02/19 19:39:38 millert Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. *************** *** 37,49 **** #ifndef lint /*static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.4 2001/01/08 07:14:42 pjanzen Exp $"; #endif /* not lint */ #include #include #include #include #include #include "indent_globs.h" --- 37,50 ---- #ifndef lint /*static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.5 2002/02/19 19:39:38 millert Exp $"; #endif /* not lint */ #include #include #include #include + #include #include #include "indent_globs.h" *************** *** 537,568 **** return (cur); } - #if __STDC__ - #include - #else - #include - #endif - int found_err; /* VARARGS2 */ void - #if __STDC__ diag(int level, char *msg, ...) - #else - diag(level, msg, va_alist) - int level; - char *msg; - va_dcl - #endif { ! va_list ap; ! #if __STDC__ ! va_start(ap, msg); ! #else ! va_start(ap); ! #endif if (level) found_err = 1; if (output == stdout) { --- 538,552 ---- return (cur); } int found_err; /* VARARGS2 */ void diag(int level, char *msg, ...) { ! va_list ap; + va_start(ap, msg); if (level) found_err = 1; if (output == stdout) {