summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2008-01-16 23:00:21 +0000
committerchl <chl@openbsd.org>2008-01-16 23:00:21 +0000
commitf8ab72297924cc8f37ab1e56b3d7591d7abf0f50 (patch)
tree835033e90185a7ea76de32e95add6acddd3e5a8f
parentMention supported radio clocks. (diff)
downloadwireguard-openbsd-f8ab72297924cc8f37ab1e56b3d7591d7abf0f50.tar.xz
wireguard-openbsd-f8ab72297924cc8f37ab1e56b3d7591d7abf0f50.zip
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;