From b7a7520692213cde3349e867b0caed4ab10e8cec Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sat, 17 May 2014 14:58:30 +0200 Subject: fsck.cramfs: ifdef unused outbuffer and page_size Signed-off-by: Ruediger Meier --- disk-utils/fsck.cramfs.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'disk-utils/fsck.cramfs.c') diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index 00ea2ab56..58276a41f 100644 --- a/disk-utils/fsck.cramfs.c +++ b/disk-utils/fsck.cramfs.c @@ -98,12 +98,13 @@ static z_stream stream; /* Prototypes */ static void expand_fs(char *, struct cramfs_inode *); -#endif /* INCLUDE_FS_TESTS */ static char *outbuffer; static size_t page_size; +#endif /* INCLUDE_FS_TESTS */ + /* Input status of 0 to print help and exit without an error. */ static void __attribute__((__noreturn__)) usage(int status) { @@ -663,10 +664,6 @@ int main(int argc, char **argv) textdomain(PACKAGE); atexit(close_stdout); - page_size = getpagesize(); - - outbuffer = xmalloc(page_size * 2); - /* command line options */ while ((c = getopt_long(argc, argv, "ayx:vVh", longopts, NULL)) != EOF) switch (c) { @@ -701,6 +698,8 @@ int main(int argc, char **argv) test_super(&start, &length); test_crc(start); #ifdef INCLUDE_FS_TESTS + page_size = getpagesize(); + outbuffer = xmalloc(page_size * 2); test_fs(start); #endif -- cgit v1.2.3-55-g7522