From bd0fd404f307f725679f1e33767d7f56662e5e02 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 Jan 1999 04:24:11 +0000 Subject: fixed unused variable warnings when DIAGNOSTIC not defined --- sys/ufs/mfs/mfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index 1e8b6a21da9..9db151f890f 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.9 1999/01/11 05:12:39 millert Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.10 1999/01/12 04:24:10 millert Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -118,6 +118,7 @@ int mfs_open(v) void *v; { +#ifdef DIAGNOSTIC struct vop_open_args /* { struct vnode *a_vp; int a_mode; @@ -125,7 +126,6 @@ mfs_open(v) struct proc *a_p; } */ *ap = v; -#ifdef DIAGNOSTIC if (ap->a_vp->v_type != VBLK) { panic("mfs_open not VBLK"); /* NOTREACHED */ @@ -308,9 +308,9 @@ mfs_inactive(v) struct vnode *a_vp; struct proc *a_p; } */ *ap = v; +#ifdef DIAGNOSTIC register struct mfsnode *mfsp = VTOMFS(ap->a_vp); -#ifdef DIAGNOSTIC if (mfsp->mfs_buflist && mfsp->mfs_buflist != (struct buf *)(-1)) panic("mfs_inactive: not inactive (mfs_buflist %p)", mfsp->mfs_buflist); -- cgit v1.2.3