From: krw Date: Tue, 28 Jun 2022 15:35:24 +0000 (+0000) Subject: Move debug-only variable 'i' to be with the other debug-only X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db53e521358dcb2548324c313d1c7973feb1a92a;p=openbsd Move debug-only variable 'i' to be with the other debug-only variables inside the #ifdef DEBUG block using them. --- diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 517ff006fca..fac7ed873a1 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.78 2022/05/10 00:56:27 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.79 2022/06/28 15:35:24 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -355,12 +355,13 @@ GPT_print(const char *units, const int verbosity) const int secsize = dl.d_secsize; char *guidstr = NULL; double size; - unsigned int i, pn; + unsigned int pn; uint32_t status; #ifdef DEBUG char *p; uint64_t sig; + unsigned int i; sig = htole64(gh.gh_sig); p = (char *)&sig;