From 87ab315978b44e4fddf2cbcc853cc3e9ba176184 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 23 Aug 1994 20:18:15 +0000 Subject: entered into RCS --- bsdfsck/utilities.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bsdfsck/utilities.c b/bsdfsck/utilities.c index 5c31061c..2141e7f8 100644 --- a/bsdfsck/utilities.c +++ b/bsdfsck/utilities.c @@ -33,14 +33,14 @@ #ifndef lint /*static char sccsid[] = "from: @(#)utilities.c 8.1 (Berkeley) 6/5/93";*/ -static char *rcsid = "$Id: utilities.c,v 1.1 1994/08/23 19:29:26 mib Exp $"; +static char *rcsid = "$Id: utilities.c,v 1.2 1994/08/23 20:18:15 mib Exp $"; #endif /* not lint */ #include #include -#include -#include -#include +#include "../ufs/dinode.h" +#include "../ufs/dir.h" +#include "../ufs/fs.h" #include #include #include @@ -52,7 +52,7 @@ long diskreads, totalreads; /* Disk cache statistics */ ftypeok(dp) struct dinode *dp; { - switch (dp->di_mode & IFMT) { + switch (DI_MODE(dp) & IFMT) { case IFDIR: case IFREG: @@ -65,7 +65,7 @@ ftypeok(dp) default: if (debug) - printf("bad file type 0%o\n", dp->di_mode); + printf("bad file type 0%o\n", DI_MODE(dp)); return (0); } } -- cgit v1.2.3