diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2007-01-28 16:23:59 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2007-01-28 16:23:59 +0000 |
commit | e590d16a9e21cb75671ccb63208810871646f066 (patch) | |
tree | 018331b3d80dec0ac1fb18edacb817f9c301c87f | |
parent | d0be0540ea92cabde335cca5054b37c753b23e24 (diff) |
Remove #include <fstab.h> as there is no fstab in umount anymore.
Always use defined type name. Comment clarification.
No binary change. ok millert
-rw-r--r-- | sbin/umount/umount.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index 143520626e1..d69bb9b1cbc 100644 --- a/sbin/umount/umount.c +++ b/sbin/umount/umount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umount.c,v 1.17 2006/06/29 12:51:26 jmc Exp $ */ +/* $OpenBSD: umount.c,v 1.18 2007/01/28 16:23:58 bluhm Exp $ */ /* $NetBSD: umount.c,v 1.16 1996/05/11 14:13:55 mycroft Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)umount.c 8.3 (Berkeley) 2/20/94"; #else -static char rcsid[] = "$OpenBSD: umount.c,v 1.17 2006/06/29 12:51:26 jmc Exp $"; +static char rcsid[] = "$OpenBSD: umount.c,v 1.18 2007/01/28 16:23:58 bluhm Exp $"; #endif #endif /* not lint */ @@ -58,7 +58,6 @@ static char rcsid[] = "$OpenBSD: umount.c,v 1.17 2006/06/29 12:51:26 jmc Exp $"; #include <nfs/rpcv2.h> #include <err.h> -#include <fstab.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -123,7 +122,7 @@ main(int argc, char *argv[]) /* -h implies "-t nfs" if no -t flag. */ if ((nfshost != NULL) && (typelist == NULL)) - maketypelist("nfs"); + maketypelist(MOUNT_NFS); if (all) errs = umountall(); @@ -323,7 +322,7 @@ maketypelist(char *fslist) /* * XXX * Note: the syntax is "noxxx,yyy" for no xxx's and - * no yyy's, not the more intuitive "noyyy,noyyy". + * no yyy's, not the more intuitive "noxxx,noyyy". */ if (fslist[0] == 'n' && fslist[1] == 'o') { fslist += 2; |