fix compilation.

This commit is contained in:
christos 2011-06-09 21:23:29 +00:00
parent 813bea3edb
commit 453164da22
3 changed files with 7 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fsutil.h,v 1.16 2011/06/09 19:57:50 christos Exp $ */
/* $NetBSD: fsutil.h,v 1.17 2011/06/09 21:23:29 christos Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@ -25,6 +25,7 @@
*/
#include <stdarg.h>
#include <signal.h>
void errexit(const char *, ...)
__attribute__((__noreturn__,__format__(__printf__,1,2)));

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.22 2010/04/11 08:23:52 hannken Exp $ */
/* $NetBSD: main.c,v 1.23 2011/06/09 21:23:29 christos Exp $ */
/*
* Copyright (C) 1995 Wolfgang Solfrank
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: main.c,v 1.22 2010/04/11 08:23:52 hannken Exp $");
__RCSID("$NetBSD: main.c,v 1.23 2011/06/09 21:23:29 christos Exp $");
#endif /* not lint */
#include <stdlib.h>
@ -61,12 +61,6 @@ usage(void)
exit(FSCK_EXIT_USAGE);
}
static void
catch(int n)
{
exit(FSCK_EXIT_SIGNALLED);
}
int
main(int argc, char **argv)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: fsdb.c,v 1.40 2011/06/09 19:57:53 christos Exp $ */
/* $NetBSD: fsdb.c,v 1.41 2011/06/09 21:23:30 christos Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fsdb.c,v 1.40 2011/06/09 19:57:53 christos Exp $");
__RCSID("$NetBSD: fsdb.c,v 1.41 2011/06/09 21:23:30 christos Exp $");
#endif /* not lint */
#include <sys/types.h>
@ -139,7 +139,7 @@ main(int argc, char *argv[])
sblock->fs_clean = 0; /* mark it dirty */
sbdirty();
markclean = 0;
ckfini();
ckfini(1);
printf("*** FILE SYSTEM MARKED DIRTY\n");
printf("*** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE\n");
printf("*** IF IT WAS MOUNTED, RE-MOUNT WITH -u -o reload\n");