summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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