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 | 87ab315978b44e4fddf2cbcc853cc3e9ba176184 (patch) | |
tree | 2b2b2257770b48f4ee5af502e018f01ed4bb5c80 /bsdfsck | |
parent | 0e3d5adbf81692d6af4736392cf5820e36d48ff0 (diff) |
entered into RCS
Diffstat (limited to 'bsdfsck')
-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); } } |