Date: Sat, 23 Jun 2001 23:22:01 -0400 (EDT) From: Mike Barcroft <mike@q9media.com> To: audit@FreeBSD.org Subject: src/usr.bin/lsvfs patch Message-ID: <200106240322.f5O3M1S90006@coffee.q9media.com>
next in thread | raw e-mail | index | archive | help
I would appreciate it if someone would review and commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/lsvfs.20010623.patch Best regards, Mike Barcroft ----------------------------------------------------------------------- lsvfs.20010623.patch o Silence compiler warning o Set WARNS?=2 Index: lsvfs/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/lsvfs/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- lsvfs/Makefile 1999/08/28 01:03:17 1.4 +++ lsvfs/Makefile 2001/06/24 03:02:21 @@ -1,4 +1,5 @@ # $FreeBSD: src/usr.bin/lsvfs/Makefile,v 1.4 1999/08/28 01:03:17 peter Exp $ PROG= lsvfs +WARNS?= 2 .include <bsd.prog.mk> Index: lsvfs/lsvfs.c =================================================================== RCS file: /home/ncvs/src/usr.bin/lsvfs/lsvfs.c,v retrieving revision 1.13 diff -u -r1.13 lsvfs.c --- lsvfs/lsvfs.c 1999/08/28 01:03:17 1.13 +++ lsvfs/lsvfs.c 2001/06/24 03:02:22 @@ -44,7 +44,7 @@ } } } else { - while (ovfcp = getvfsent()) { + while ((ovfcp = getvfsent()) != NULL) { printf(FMT, ovfcp->vfc_name, ovfcp->vfc_refcount, fmt_flags(ovfcp->vfc_flags)); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106240322.f5O3M1S90006>