Make vmsg non-static, so it can be used directly by fsck_lfs.

This commit is contained in:
perseant 2003-03-28 08:12:38 +00:00
parent ba10361ab2
commit 42b9009195
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fsutil.c,v 1.11 2001/11/09 07:50:19 lukem Exp $ */
/* $NetBSD: fsutil.c,v 1.12 2003/03/28 08:12:38 perseant Exp $ */
/*
* Copyright (c) 1990, 1993
@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fsutil.c,v 1.11 2001/11/09 07:50:19 lukem Exp $");
__RCSID("$NetBSD: fsutil.c,v 1.12 2003/03/28 08:12:38 perseant Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -57,9 +57,6 @@ static const char *dev = NULL;
static int hot = 0;
static int preen = 0;
static void vmsg(int, const char *, va_list)
__attribute((__format__(__printf__,2,0)));
void
setcdevname(const char *cd, int pr)
{
@ -94,7 +91,7 @@ errexit(const char *fmt, ...)
exit(8);
}
static void
void
vmsg(int fatal, const char *fmt, va_list ap)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: fsutil.h,v 1.7 2001/06/18 06:28:59 lukem Exp $ */
/* $NetBSD: fsutil.h,v 1.8 2003/03/28 08:12:38 perseant Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@ -29,6 +29,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdarg.h>
void errexit(const char *, ...)
__attribute__((__noreturn__,__format__(__printf__,1,2)));
void pfatal(const char *, ...)
@ -37,6 +39,8 @@ void pwarn(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void panic(const char *, ...)
__attribute__((__noreturn__,__format__(__printf__,1,2)));
void vmsg(int, const char *, va_list)
__attribute((__format__(__printf__,2,0)));
const char *rawname(const char *);
const char *unrawname(const char *);
const char *blockcheck(const char *);