From: Ruediger Meier Date: Sat, 17 May 2014 12:58:30 +0000 (+0200) Subject: fsck.cramfs: ifdef unused outbuffer and page_size X-Git-Tag: v2.25-rc1~121^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7a7520692213cde3349e867b0caed4ab10e8cec;p=thirdparty%2Futil-linux.git fsck.cramfs: ifdef unused outbuffer and page_size Signed-off-by: Ruediger Meier --- diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index 00ea2ab569..58276a41f8 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