From e42a96d82d1cd1e37af97bb24d94fa28c36ff300 Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 19 Apr 2022 17:36:36 +0000 Subject: [PATCH] Move declaration of DEBUG-only variable inside #ifdef DEBUG. No functional change. --- sbin/fdisk/gpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 8f91536a237..00e88676a20 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.67 2022/04/19 17:30:36 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.68 2022/04/19 17:36:36 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -317,12 +317,12 @@ GPT_print(const char *units, const int verbosity) const int secsize = dl.d_secsize; char *guidstr = NULL; double size; - uint64_t sig; int i; uint32_t status; #ifdef DEBUG char *p; + uint64_t sig; sig = htole64(gh.gh_sig); p = (char *)&sig; -- 2.20.1