From 953ac95a7db46a16c9b2097ab970fe255ccc83b0 Mon Sep 17 00:00:00 2001 From: dd Date: Sun, 24 Jun 2001 18:56:00 +0000 Subject: [PATCH] Silence warning and set WARNS=2. Submitted by: Mike Barcroft Reviewed by: md5(1) --- usr.bin/lsvfs/Makefile | 1 + usr.bin/lsvfs/lsvfs.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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)); }