Appease gcc: unused variables if !QUOTA

This commit is contained in:
pk 1996-03-25 12:53:35 +00:00
parent e471d816de
commit 44af669e3d
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_alloc.c,v 1.3 1996/02/09 22:28:47 christos Exp $ */
/* $NetBSD: lfs_alloc.c,v 1.4 1996/03/25 12:53:37 pk Exp $ */
/*
* Copyright (c) 1991, 1993
@ -165,7 +165,10 @@ lfs_vcreate(mp, ino, vpp)
extern int (**lfs_vnodeop_p) __P((void *));
struct inode *ip;
struct ufsmount *ump;
int error, i;
int error;
#ifdef QUOTA
int i;
#endif
/* Create the vnode. */
if ((error = getnewvnode(VT_LFS, mp, lfs_vnodeop_p, vpp)) != 0) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_vfsops.c,v 1.10 1996/02/09 22:28:58 christos Exp $ */
/* $NetBSD: lfs_vfsops.c,v 1.11 1996/03/25 12:53:35 pk Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1994
@ -349,7 +349,7 @@ lfs_unmount(mp, mntflags, p)
{
register struct ufsmount *ump;
register struct lfs *fs;
int i, error, flags, ronly;
int error, flags, ronly;
flags = 0;
if (mntflags & MNT_FORCE)
@ -359,6 +359,7 @@ lfs_unmount(mp, mntflags, p)
fs = ump->um_lfs;
#ifdef QUOTA
if (mp->mnt_flag & MNT_QUOTA) {
int i;
error = vflush(mp, fs->lfs_ivnode, SKIPSYSTEM|flags);
if (error)
return (error);