From 761de7345c55ad6d1ac6b89805b82820b7d8a2e9 Mon Sep 17 00:00:00 2001 From: simonb Date: Thu, 10 Apr 2003 04:15:38 +0000 Subject: [PATCH] '#if 0' out a variable that is currently only used in other '#if 0'd out code. --- sys/ufs/lfs/lfs_inode.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/ufs/lfs/lfs_inode.c b/sys/ufs/lfs/lfs_inode.c index eaf893216b46..e30d4a6db632 100644 --- a/sys/ufs/lfs/lfs_inode.c +++ b/sys/ufs/lfs/lfs_inode.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_inode.c,v 1.72 2003/04/02 10:39:41 fvdl Exp $ */ +/* $NetBSD: lfs_inode.c,v 1.73 2003/04/10 04:15:38 simonb Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lfs_inode.c,v 1.72 2003/04/02 10:39:41 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_inode.c,v 1.73 2003/04/10 04:15:38 simonb Exp $"); #if defined(_KERNEL_OPT) #include "opt_quota.h" @@ -513,14 +513,19 @@ lfs_truncate(void *v) */ bn = oip->i_ffs1_db[lastblock]; if (bn != 0) { - long oldspace, newspace, olddspace; + long oldspace, newspace; +#if 0 + long olddspace; +#endif /* * Calculate amount of space we're giving * back as old block size minus new block size. */ oldspace = blksize(fs, oip, lastblock); +#if 0 olddspace = oip->i_lfs_fragsize[lastblock]; +#endif oip->i_size = oip->i_ffs1_size = length; newspace = blksize(fs, oip, lastblock);