use definition S_IFBLK from stat.h rather than IFBLK from inode.h
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 17 Aug 1989 08:12:19 +0000 (00:12 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 17 Aug 1989 08:12:19 +0000 (00:12 -0800)
SCCS-vsn: sbin/umount/umount.c 5.8

usr/src/sbin/umount/umount.c

index 9361ae2..0634fb8 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)umount.c   5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)umount.c   5.8 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -22,8 +22,6 @@ static char sccsid[] = "@(#)umount.c  5.7 (Berkeley) %G%";
 #include <fstab.h>
 #include <sys/stat.h>
 #include <sys/mount.h>
 #include <fstab.h>
 #include <sys/stat.h>
 #include <sys/mount.h>
-#include <sys/vnode.h>
-#include <ufs/inode.h>
 #ifdef NFS
 #include <sys/time.h>
 #include <sys/socket.h>
 #ifdef NFS
 #include <sys/time.h>
 #include <sys/socket.h>
@@ -158,10 +156,10 @@ umountfs(name)
        if (stat(name, &stbuf) < 0) {
                if ((mntpt = getmntinfo(name, MNTON)) == 0)
                        return (0);
        if (stat(name, &stbuf) < 0) {
                if ((mntpt = getmntinfo(name, MNTON)) == 0)
                        return (0);
-       } else if ((stbuf.st_mode & IFMT) == IFBLK) {
+       } else if ((stbuf.st_mode & S_IFMT) == S_IFBLK) {
                if ((mntpt = getmntinfo(name, MNTON)) == 0)
                        return (0);
                if ((mntpt = getmntinfo(name, MNTON)) == 0)
                        return (0);
-       } else if ((stbuf.st_mode & IFMT) == IFDIR) {
+       } else if ((stbuf.st_mode & S_IFMT) == S_IFDIR) {
                mntpt = name;
                if ((name = getmntinfo(mntpt, MNTFROM)) == 0)
                        return (0);
                mntpt = name;
                if ((name = getmntinfo(mntpt, MNTFROM)) == 0)
                        return (0);