Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs fix redundant decls
details: https://anonhg.NetBSD.org/src/rev/b7420a294290
branches: trunk
changeset: 503332:b7420a294290
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 04 21:52:02 2001 +0000
description:
fix redundant decls
diffstat:
sbin/fsck_lfs/inode.c | 3 +--
sbin/fsck_lfs/main.c | 6 +++---
sbin/fsck_lfs/utilities.c | 6 +++---
sbin/fsck_lfs/vars.c | 3 +--
4 files changed, 8 insertions(+), 10 deletions(-)
diffs (88 lines):
diff -r 05eec6bbd24f -r b7420a294290 sbin/fsck_lfs/inode.c
--- a/sbin/fsck_lfs/inode.c Sun Feb 04 21:51:19 2001 +0000
+++ b/sbin/fsck_lfs/inode.c Sun Feb 04 21:52:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.9 2001/01/06 23:08:24 joff Exp $ */
+/* $NetBSD: inode.c,v 1.10 2001/02/04 21:52:02 christos Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -58,7 +58,6 @@
static int iblock(struct inodesc *, long, u_int64_t);
int blksreqd(struct lfs *, int);
int lfs_maxino(void);
-SEGUSE *lfs_gseguse(int, struct bufarea **);
/* static void dump_inoblk (struct lfs *, struct dinode *); */
/* stolen from lfs_inode.c */
diff -r 05eec6bbd24f -r b7420a294290 sbin/fsck_lfs/main.c
--- a/sbin/fsck_lfs/main.c Sun Feb 04 21:51:19 2001 +0000
+++ b/sbin/fsck_lfs/main.c Sun Feb 04 21:52:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.7 2000/11/11 22:26:10 perseant Exp $ */
+/* $NetBSD: main.c,v 1.8 2001/02/04 21:52:04 christos Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -64,6 +64,8 @@
#endif
static void usage(void);
+extern char *__progname;
+
int
main(int argc, char **argv)
{
@@ -322,8 +324,6 @@
static void
usage()
{
- extern char *__progname;
-
(void)fprintf(stderr,
"Usage: %s [-dnpy] [-b block] [-m mode] filesystem ...\n",
__progname);
diff -r 05eec6bbd24f -r b7420a294290 sbin/fsck_lfs/utilities.c
--- a/sbin/fsck_lfs/utilities.c Sun Feb 04 21:51:19 2001 +0000
+++ b/sbin/fsck_lfs/utilities.c Sun Feb 04 21:52:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utilities.c,v 1.6 2000/10/10 20:24:51 is Exp $ */
+/* $NetBSD: utilities.c,v 1.7 2001/02/04 21:52:04 christos Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -55,6 +55,8 @@
static void rwerror(char *, daddr_t);
+extern int returntosingle;
+
int
ftypeok(struct dinode * dp)
{
@@ -505,8 +507,6 @@
void
catchquit(int n)
{
- extern int returntosingle;
-
printf("returning to single-user after filesystem check\n");
returntosingle = 1;
(void)signal(SIGQUIT, SIG_DFL);
diff -r 05eec6bbd24f -r b7420a294290 sbin/fsck_lfs/vars.c
--- a/sbin/fsck_lfs/vars.c Sun Feb 04 21:51:19 2001 +0000
+++ b/sbin/fsck_lfs/vars.c Sun Feb 04 21:52:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vars.c,v 1.4 2000/06/14 18:44:01 perseant Exp $ */
+/* $NetBSD: vars.c,v 1.5 2001/02/04 21:52:04 christos Exp $ */
#include <sys/param.h>
#include <sys/time.h>
@@ -14,7 +14,6 @@
struct bufarea iblk; /* ifile on-disk inode block */
struct bufarea *pdirbp; /* current directory contents */
struct bufarea *pbp; /* current inode block */
-struct bufarea *getdatablk(daddr_t, long);
int iinooff; /* ifile inode offset in block of inodes */
struct dups *duplist; /* head of dup list */
Home |
Main Index |
Thread Index |
Old Index