=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/print.c,v retrieving revision 1.7 retrieving revision 1.7.4.1 diff -u -r1.7 -r1.7.4.1 --- src/usr.bin/file/Attic/print.c 2002/02/19 19:39:38 1.7 +++ src/usr.bin/file/Attic/print.c 2003/03/12 02:14:16 1.7.4.1 @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.7 2002/02/19 19:39:38 millert Exp $ */ +/* $OpenBSD: print.c,v 1.7.4.1 2003/03/12 02:14:16 margarida Exp $ */ /* * print.c - debugging printout routines @@ -38,7 +38,7 @@ #include "file.h" #ifndef lint -static char *moduleid = "$OpenBSD: print.c,v 1.7 2002/02/19 19:39:38 millert Exp $"; +static char *moduleid = "$OpenBSD: print.c,v 1.7.4.1 2003/03/12 02:14:16 margarida Exp $"; #endif /* lint */ #define SZOF(a) (sizeof(a) / sizeof(a[0])) @@ -103,6 +103,17 @@ } } (void) fprintf(stderr, ",\"%s\"]\n", m->desc); +} + +/* + * This "error" is here so we don't have to change all occurrences of + * error() to err(1,...) when importing new versions from Christos. + */ +void error(const char *fmt, ...) +{ + va_list va; + va_start(va, fmt); + verr(1, fmt, va); } /*