summaryrefslogtreecommitdiff
path: root/sbin/fdisk/gpt.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2023-03-31 13:11:42 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2023-03-31 13:11:42 +0000
commit6476aa9c69e4c0eda959e439e7968dfa0dc5c2e8 (patch)
tree2af64248e5e722cc96c9ba25ca560e1ee7d09898 /sbin/fdisk/gpt.c
parent0f0dcb3134b7ee2c0f0ad6cb8025863a91d5c049 (diff)
Be more consistent in function naming. Functions taking or
returning struct uuid's use 'uuid' in their names. Lengthen a pointlessly short line. 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 40aa00c7897..bebb470c718 100644
--- a/sbin/fdisk/gpt.c
+++ b/sbin/fdisk/gpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpt.c,v 1.87 2023/03/25 15:05:45 krw Exp $ */
+/* $OpenBSD: gpt.c,v 1.88 2023/03/31 13:11:41 krw Exp $ */
/*
* Copyright (c) 2015 Markus Muller <mmu@grummel.net>
* Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org>
@@ -619,7 +619,7 @@ init_gp(const int how)
memset(&gp, 0, sizeof(gp));
else {
for (pn = 0; pn < gh.gh_part_num; pn++) {
- if (PRT_protected_guid(&gp[pn].gp_type) ||
+ if (PRT_protected_uuid(&gp[pn].gp_type) ||
(gp[pn].gp_attrs & GPTPARTATTR_REQUIRED))
continue;
memset(&gp[pn], 0, sizeof(gp[pn]));