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 b2b06113e666..34cc78b4b011 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 cb6a032e634b..0b53a2dee67d 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)); } |
