summaryrefslogtreecommitdiff
path: root/sbin/fdisk/gpt.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-04-19 17:36:37 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-04-19 17:36:37 +0000
commitb01f7b924111edf9f98a2988dd49849c1d48c2de (patch)
tree34112c43e7e5f5565f974378793d19f1b2afa743 /sbin/fdisk/gpt.c
parent88d167c364d28c08d352014b10a0c121477b6fe8 (diff)
Move declaration of DEBUG-only variable inside #ifdef DEBUG.
No functional change.
Diffstat (limited to 'sbin/fdisk/gpt.c')
-rw-r--r--sbin/fdisk/gpt.c4
1 files 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 <mmu@grummel.net>
* Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org>
@@ -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;