From owner-freebsd-audit Sat Jun 23 20: 9:22 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 3AE6D37B401 for ; Sat, 23 Jun 2001 20:09:19 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f5O3M1S90006; Sat, 23 Jun 2001 23:22:01 -0400 (EDT) (envelope-from mike) Date: Sat, 23 Jun 2001 23:22:01 -0400 (EDT) Message-Id: <200106240322.f5O3M1S90006@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/usr.bin/lsvfs patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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