From 172fc5ae2859e52d6834a79f98b1ed5573dcc2ce Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 10 Dec 1995 21:38:45 +0000 Subject: [PATCH] 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(+) diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c index e14aeb4aa8be..e954150a82f5 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 8b12631c23e7..09f428230e64 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 e14aeb4aa8be..e954150a82f5 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 8b12631c23e7..09f428230e64 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;