diff options
author | ru <ru@FreeBSD.org> | 1999-06-03 09:03:50 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 1999-06-03 09:03:50 +0000 |
commit | c53963c15e0601c9d4bd4fe1ee0ed7f9d6e2d47d (patch) | |
tree | b2265d1cb52ba161a560380d62be9de2a90ef0fa /usr.bin/lsvfs | |
parent | 0e558e446c4d44dbffde0a657b199708e35cd010 (diff) | |
download | FreeBSD-src-c53963c15e0601c9d4bd4fe1ee0ed7f9d6e2d47d.zip FreeBSD-src-c53963c15e0601c9d4bd4fe1ee0ed7f9d6e2d47d.tar.gz |
getvfsbyname() returns zero on success.
PR: 12000
Submitted by: Anatoly A. Orehovsky <tolik@mpeks.tomsk.su>
Diffstat (limited to 'usr.bin/lsvfs')
-rw-r--r-- | usr.bin/lsvfs/lsvfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c index 00bef3f..d988904 100644 --- a/usr.bin/lsvfs/lsvfs.c +++ b/usr.bin/lsvfs/lsvfs.c @@ -3,7 +3,7 @@ * Garrett A. Wollman, September 1994 * This file is in the public domain. * - * $Id: lsvfs.c,v 1.10 1998/01/17 16:24:27 bde Exp $ + * $Id: lsvfs.c,v 1.11 1998/08/29 13:53:22 bde Exp $ */ #define _NEW_VFSCONF @@ -36,7 +36,7 @@ main(int argc, char **argv) if(argc) { for(; argc; argc--, argv++) { - if (getvfsbyname(*argv, &vfc) != 0) { + if (getvfsbyname(*argv, &vfc) == 0) { printf(FMT, vfc.vfc_name, vfc.vfc_refcount, fmt_flags(vfc.vfc_flags)); } else { warnx("VFS %s unknown or not loaded", *argv); |