From 7a6716886b72164aa156519b28056914ba12d11a Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 29 Aug 2021 17:29:14 +0000 Subject: [PATCH] Nuke unused variable and unnecessary initialization. --- sbin/fdisk/cmd.c | 6 +++--- 1 file 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); -- 2.20.1