mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
getvfsbyname() returns zero on success.
PR: 12000 Submitted by: Anatoly A. Orehovsky <tolik@mpeks.tomsk.su>
This commit is contained in:
parent
fa0d521656
commit
c3e53c0457
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47701
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue