Module Name: src
Committed By: christos
Date: Thu Mar 17 18:56:14 UTC 2016
Modified Files:
src/sbin/fsck_lfs: setup.c
Log Message:
PR/50974: David Binderman: Remove unused code.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sbin/fsck_lfs/setup.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fsck_lfs/setup.c
diff -u src/sbin/fsck_lfs/setup.c:1.60 src/sbin/fsck_lfs/setup.c:1.61
--- src/sbin/fsck_lfs/setup.c:1.60 Sat Oct 3 04:29:21 2015
+++ src/sbin/fsck_lfs/setup.c Thu Mar 17 14:56:14 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.60 2015/10/03 08:29:21 dholland Exp $ */
+/* $NetBSD: setup.c,v 1.61 2016/03/17 18:56:14 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -163,7 +163,9 @@ extern time_t write_time;
int
setup(const char *dev)
{
+#ifndef VERBOSE_BLOCKMAP
long bmapsize;
+#endif
struct stat statb;
int doskipclean;
u_int64_t maxfilesize;
@@ -444,7 +446,6 @@ setup(const char *dev)
bmapsize = roundup(howmany(maxfsblock, NBBY), sizeof(int16_t));
blockmap = ecalloc(bmapsize, sizeof(char));
#else
- bmapsize = maxfsblock * sizeof(ino_t);
blockmap = ecalloc(maxfsblock, sizeof(ino_t));
#endif
statemap = ecalloc(maxino, sizeof(char));