From db53e521358dcb2548324c313d1c7973feb1a92a Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 28 Jun 2022 15:35:24 +0000 Subject: [PATCH] Move debug-only variable 'i' to be with the other debug-only variables inside the #ifdef DEBUG block using them. --- sbin/fdisk/gpt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1