diff options
author | Ruediger Meier | 2014-05-17 14:58:30 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-05-19 09:22:39 +0200 |
commit | b7a7520692213cde3349e867b0caed4ab10e8cec (patch) | |
tree | 12e35405abde43bab5fa60aa20697b9531f3d0e4 /disk-utils | |
parent | fsck.cramfs: allow smaller superblock sizes (diff) | |
download | kernel-qcow2-util-linux-b7a7520692213cde3349e867b0caed4ab10e8cec.tar.gz kernel-qcow2-util-linux-b7a7520692213cde3349e867b0caed4ab10e8cec.tar.xz kernel-qcow2-util-linux-b7a7520692213cde3349e867b0caed4ab10e8cec.zip |
fsck.cramfs: ifdef unused outbuffer and page_size
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fsck.cramfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
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 |