summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-01-16 23:00:22 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-01-16 23:00:22 +0000
commit47ce2401a6b4d5fefb6f3796c77f4a022583b1e0 (patch)
treef7378a2dbf5dbf0d959b0fb6280be26671e1c19b
parenta53b60032f4810e9f26ac18c73249a6a5e47835a (diff)
remove "unused variable" warning
ok krw@
-rw-r--r--sbin/disklabel/editor.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 2fb8ee5e430..3d64146e143 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.158 2008/01/12 20:06:57 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.159 2008/01/16 23:00:21 chl Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: editor.c,v 1.158 2008/01/12 20:06:57 krw Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.159 2008/01/16 23:00:21 chl Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -441,7 +441,7 @@ editor_add(struct disklabel *lp, char **mp, char *p)
struct diskchunk *chunks;
char buf[2];
int i, partno;
- u_int64_t freesectors, ui, new_offset, new_size;
+ u_int64_t freesectors, new_offset, new_size;
freesectors = editor_countfree(lp);
@@ -592,8 +592,7 @@ void
editor_modify(struct disklabel *lp, char **mp, char *p)
{
struct partition origpart, *pp;
- struct diskchunk *chunks;
- int partno, i;
+ int partno;
/* Change which partition? */
if (p == NULL) {
@@ -1421,7 +1420,6 @@ u_int64_t
editor_countfree(struct disklabel *lp)
{
struct diskchunk *chunks;
- struct partition *pp;
u_int64_t freesectors = 0;
int i;