Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin fix compilation.



details:   https://anonhg.NetBSD.org/src/rev/60dddd94848a
branches:  trunk
changeset: 765910:60dddd94848a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 09 21:23:29 2011 +0000

description:
fix compilation.

diffstat:

 sbin/fsck/fsutil.h     |   3 ++-
 sbin/fsck_msdos/main.c |  10 ++--------
 sbin/fsdb/fsdb.c       |   6 +++---
 3 files changed, 7 insertions(+), 12 deletions(-)

diffs (75 lines):

diff -r 9a34801a50a9 -r 60dddd94848a sbin/fsck/fsutil.h
--- a/sbin/fsck/fsutil.h        Thu Jun 09 21:04:37 2011 +0000
+++ b/sbin/fsck/fsutil.h        Thu Jun 09 21:23:29 2011 +0000
@@ -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)));  
diff -r 9a34801a50a9 -r 60dddd94848a sbin/fsck_msdos/main.c
--- a/sbin/fsck_msdos/main.c    Thu Jun 09 21:04:37 2011 +0000
+++ b/sbin/fsck_msdos/main.c    Thu Jun 09 21:23:29 2011 +0000
@@ -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 @@
        exit(FSCK_EXIT_USAGE);
 }
 
-static void
-catch(int n)
-{
-       exit(FSCK_EXIT_SIGNALLED);
-}
-
 int
 main(int argc, char **argv)
 {
diff -r 9a34801a50a9 -r 60dddd94848a sbin/fsdb/fsdb.c
--- a/sbin/fsdb/fsdb.c  Thu Jun 09 21:04:37 2011 +0000
+++ b/sbin/fsdb/fsdb.c  Thu Jun 09 21:23:29 2011 +0000
@@ -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 @@
        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");



Home | Main Index | Thread Index | Old Index