summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-08-29 17:29:15 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-08-29 17:29:15 +0000
commit71f8dd0ebb3fbc6b61c9e90e7897afb714a1acc6 (patch)
treee80cc47094a8f81491b60cf9845b8e1853559dcd /sbin
parentcac3b3412aa14d041a1e5b86381e125cddbc021a (diff)
Nuke unused variable and unnecessary initialization.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 0eb738e9771..181e93e8f0a 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.141 2021/08/28 11:55:17 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.142 2021/08/29 17:29:14 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -604,8 +604,8 @@ ask_num(const char *str, int dflt, int low, int high)
int
ask_pid(const int dflt, struct uuid *guid)
{
- char lbuf[100], *cp;
- int num = -1, status;
+ char lbuf[100];
+ int num, status;
for (;;) {
printf("Partition id ('0' to disable) [01 - FF]: [%02X] ", dflt);