diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-07-09 08:06:38 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-07-09 08:06:38 +0000 |
commit | 54971de09b287ab807700078f548b926a7a1e30d (patch) | |
tree | fd67706264cf59536f8b7578da11d3f2e665621a /sbin/fsck_ffs/main.c | |
parent | 0f1339d1d5fcdc8b01b5de616454c20e85734ebd (diff) |
kill redundant docheck() function; ok deraadt@
Diffstat (limited to 'sbin/fsck_ffs/main.c')
-rw-r--r-- | sbin/fsck_ffs/main.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 0e2fa1aa31a..74fecbd750f 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.34 2009/10/27 23:59:32 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.35 2010/07/09 08:06:37 otto Exp $ */ /* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */ /* @@ -35,7 +35,6 @@ #include <sys/mount.h> #include <ufs/ufs/dinode.h> #include <ufs/ffs/fs.h> -#include <fstab.h> #include <stdlib.h> #include <string.h> #include <ctype.h> @@ -50,7 +49,6 @@ volatile sig_atomic_t returntosingle; int argtoi(int, char *, char *, int); int checkfilesys(char *, char *, long, int); -int docheck(struct fstab *); int main(int, char *[]); extern char *__progname; @@ -143,22 +141,6 @@ argtoi(int flag, char *req, char *str, int base) } /* - * Determine whether a filesystem should be checked. - */ -int -docheck(struct fstab *fsp) -{ - - if ((strcmp(fsp->fs_vfstype, "ufs") && - strcmp(fsp->fs_vfstype, "ffs")) || - (strcmp(fsp->fs_type, FSTAB_RW) && - strcmp(fsp->fs_type, FSTAB_RO)) || - fsp->fs_passno == 0) - return (0); - return (1); -} - -/* * Check the specified filesystem. */ /* ARGSUSED */ |