getvfsbyname() returns zero on success.

PR:		12000
Submitted by:	Anatoly A. Orehovsky <tolik@mpeks.tomsk.su>
This commit is contained in:
Ruslan Ermilov 1999-06-03 09:03:50 +00:00
parent fa0d521656
commit c3e53c0457
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47701

View file

@ -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);