From ce0c9a0b239239ec6ed8cfab82b1b824bad653af Mon Sep 17 00:00:00 2001
From: dd
Date: Sun, 24 Jun 2001 23:31:07 +0000
Subject: Nuke unused variables.
---
sbin/disklabel/disklabel.c | 3 ---
1 file changed, 3 deletions(-)
(limited to 'sbin/disklabel')
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 8f7ab5d..cf3638f 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -959,7 +959,6 @@ getasciilabel(f, lp)
{
register char **cpp, *cp;
register struct partition *pp;
- int i;
unsigned int part;
char *tp, *s, line[BUFSIZ];
int v, lineno = 0, errors = 0;
@@ -1392,7 +1391,6 @@ checklabel(lp)
hog_part = i;
}
} else {
- char *type;
off_t size;
size = pp->p_size;
@@ -1452,7 +1450,6 @@ checklabel(lp)
for (i = 0; i < lp->d_npartitions; i++) {
pp = &lp->d_partitions[i];
if (part_set[i] && part_size_type[i] == '%') {
- unsigned long old_size = pp->p_size;
/* careful of overflows! and integer roundoff */
pp->p_size = ((double)pp->p_size/100) * free_space;
total_size += pp->p_size;
--
cgit v1.1