artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b087d3
)
Nuke unused variable and unnecessary initialization.
author
krw
<krw@openbsd.org>
Sun, 29 Aug 2021 17:29:14 +0000
(17:29 +0000)
committer
krw
<krw@openbsd.org>
Sun, 29 Aug 2021 17:29:14 +0000
(17:29 +0000)
sbin/fdisk/cmd.c
patch
|
blob
|
history
diff --git
a/sbin/fdisk/cmd.c
b/sbin/fdisk/cmd.c
index
0eb738e
..
181e93e
100644
(file)
--- a/
sbin/fdisk/cmd.c
+++ b/
sbin/fdisk/cmd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: cmd.c,v 1.14
1 2021/08/28 11:55:17
krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.14
2 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);