Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck remove redundant declarations and nested externs.



details:   https://anonhg.NetBSD.org/src/rev/8bb3eaa5bc5f
branches:  trunk
changeset: 503309:8bb3eaa5bc5f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 19:59:37 2001 +0000

description:
remove redundant declarations and nested externs.

diffstat:

 sbin/fsck/fsck.c   |  7 ++++---
 sbin/fsck/fsutil.h |  3 +--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 093f53ac74e8 -r 8bb3eaa5bc5f sbin/fsck/fsck.c
--- a/sbin/fsck/fsck.c  Sun Feb 04 19:54:56 2001 +0000
+++ b/sbin/fsck/fsck.c  Sun Feb 04 19:59:37 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fsck.c,v 1.21 1999/04/22 04:20:53 abs Exp $    */
+/*     $NetBSD: fsck.c,v 1.22 2001/02/04 19:59:37 christos Exp $       */
 
 /*
  * Copyright (c) 1996 Christos Zoulas. All rights reserved.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fsck.c,v 1.21 1999/04/22 04:20:53 abs Exp $");
+__RCSID("$NetBSD: fsck.c,v 1.22 2001/02/04 19:59:37 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -95,6 +95,8 @@
 static void usage __P((void));
 static void *isok __P((struct fstab *));
 
+extern char *__progname;
+
 int
 main(argc, argv)
        int argc;
@@ -515,7 +517,6 @@
 static void
 usage()
 {
-       extern char *__progname;
        static const char common[] =
            "[-dpvlyn] [-T fstype:fsoptions] [-t fstype]";
 
diff -r 093f53ac74e8 -r 8bb3eaa5bc5f sbin/fsck/fsutil.h
--- a/sbin/fsck/fsutil.h        Sun Feb 04 19:54:56 2001 +0000
+++ b/sbin/fsck/fsutil.h        Sun Feb 04 19:59:37 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fsutil.h,v 1.4 1998/07/26 20:02:36 mycroft Exp $       */
+/*     $NetBSD: fsutil.h,v 1.5 2001/02/04 19:59:37 christos Exp $      */
 
 /*
  * Copyright (c) 1996 Christos Zoulas.  All rights reserved.
@@ -29,7 +29,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-void perror __P((const char *));
 void errexit __P((const char *, ...))
     __attribute__((__noreturn__,__format__(__printf__,1,2)));  
 void pfatal __P((const char *, ...))



Home | Main Index | Thread Index | Old Index