diff options
-rw-r--r-- | usr.bin/lsvfs/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/lsvfs/lsvfs.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/lsvfs/Makefile b/usr.bin/lsvfs/Makefile index b2b0611..34cc78b 100644 --- a/usr.bin/lsvfs/Makefile +++ b/usr.bin/lsvfs/Makefile @@ -1,4 +1,5 @@ # $FreeBSD$ PROG= lsvfs +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c index cb6a032..0b53a2d 100644 --- a/usr.bin/lsvfs/lsvfs.c +++ b/usr.bin/lsvfs/lsvfs.c @@ -44,7 +44,7 @@ main(int argc, char **argv) } } } else { - while (ovfcp = getvfsent()) { + while ((ovfcp = getvfsent()) != NULL) { printf(FMT, ovfcp->vfc_name, ovfcp->vfc_refcount, fmt_flags(ovfcp->vfc_flags)); } |