From 3e882cae21fc9d8c1c7732680323735b67c9af7b Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 10 Dec 1995 21:38:45 +0000 Subject: Restored variables that are used iff QUOTA is defined. ext2fs still uses #if in many cases where the rest of the kernel uses #ifdef (for QUOTA...). --- sys/gnu/ext2fs/ext2_alloc.c | 3 +++ sys/gnu/ext2fs/ext2_vfsops.c | 3 +++ sys/gnu/fs/ext2fs/ext2_alloc.c | 3 +++ sys/gnu/fs/ext2fs/ext2_vfsops.c | 3 +++ 4 files changed, 12 insertions(+) (limited to 'sys/gnu') diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c index e14aeb4..e954150 100644 --- a/sys/gnu/ext2fs/ext2_alloc.c +++ b/sys/gnu/ext2fs/ext2_alloc.c @@ -112,6 +112,9 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp) { register struct ext2_sb_info *fs; daddr_t bno; +#if QUOTA + int error; +#endif *bnp = 0; fs = ip->i_e2fs; diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index 8b12631..09f4282 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -713,6 +713,9 @@ ext2_flushfiles(mp, flags, p) #endif register struct ufsmount *ump; int error; +#if QUOTA + int i; +#endif if (!doforce) flags &= ~FORCECLOSE; diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c index e14aeb4..e954150 100644 --- a/sys/gnu/fs/ext2fs/ext2_alloc.c +++ b/sys/gnu/fs/ext2fs/ext2_alloc.c @@ -112,6 +112,9 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp) { register struct ext2_sb_info *fs; daddr_t bno; +#if QUOTA + int error; +#endif *bnp = 0; fs = ip->i_e2fs; diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index 8b12631..09f4282 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -713,6 +713,9 @@ ext2_flushfiles(mp, flags, p) #endif register struct ufsmount *ump; int error; +#if QUOTA + int i; +#endif if (!doforce) flags &= ~FORCECLOSE; -- cgit v1.1