diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-08-23 20:18:15 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-08-23 20:18:15 +0000 |
commit | 4861b7c4e083ac80712404662fee0accfd7dbb70 (patch) | |
tree | d40eaceb9c8c2de34c01487fa2756d3c1e5dc42e /bsdfsck/utilities.c | |
parent | dcb05babce12bb748acd05f0b429ad25a0ae16f1 (diff) |
entered into RCS
Diffstat (limited to 'bsdfsck/utilities.c')
-rw-r--r-- | bsdfsck/utilities.c | 12 |
1 files 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 <sys/param.h> #include <sys/time.h> -#include <ufs/ufs/dinode.h> -#include <ufs/ufs/dir.h> -#include <ufs/ffs/fs.h> +#include "../ufs/dinode.h" +#include "../ufs/dir.h" +#include "../ufs/fs.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -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); } } |