summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2015-08-25 15:33:09 +0000
committeraraujo <araujo@FreeBSD.org>2015-08-25 15:33:09 +0000
commitf03e7b319bf76c32c688db8858304aa1bbfd50a7 (patch)
tree7ec55da7bcd2d85b9e287fc7e67164adfd6f9d9e /sbin/newfs/newfs.c
parent9ff051aa1cc08152eef35ef635d5a4403a86cc95 (diff)
downloadFreeBSD-src-f03e7b319bf76c32c688db8858304aa1bbfd50a7.zip
FreeBSD-src-f03e7b319bf76c32c688db8858304aa1bbfd50a7.tar.gz
Code cleanup unused-but-set-variable spotted by gcc.
Approved by: bapt (mentor) Differential Revision: D3475
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r--sbin/newfs/newfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 658bd42..1f8e4d3 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -130,7 +130,6 @@ main(int argc, char *argv[])
{
struct partition *pp;
struct disklabel *lp;
- struct partition oldpartition;
struct stat st;
char *cp, *special;
intmax_t reserved;
@@ -362,7 +361,6 @@ main(int argc, char *argv[])
pp = &lp->d_partitions[RAW_PART];
else
pp = &lp->d_partitions[*cp - 'a'];
- oldpartition = *pp;
if (pp->p_size == 0)
errx(1, "%s: `%c' partition is unavailable",
special, *cp);
OpenPOWER on IntegriCloud