diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2022-09-15 15:05:59 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2022-09-15 15:05:59 +0000 |
commit | 593e01fb408b34ae8d79f8704ec75e7518122bef (patch) | |
tree | 65f94d4e4c1837cdb789efb442d8ef40a11209d9 /sbin/fdisk | |
parent | 6853e39193cfed272e4c8ed7d041774b95ba7dc5 (diff) |
Short names make for shorter and prettier lines.
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/gpt.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 3800e737a3e..8fcf740b440 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.82 2022/09/15 10:10:14 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.83 2022/09/15 15:05:58 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller <mmu@grummel.net> * Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org> @@ -436,7 +436,7 @@ GPT_print_part(const unsigned int pn, const char *units, const int verbosity) { const uint8_t gpt_uuid_msdos[] = GPT_UUID_MSDOS; const struct unit_type *ut; - struct uuid uuid_msdos; + struct uuid uuid; char *guidstr = NULL; double size; uint64_t attrs, end, start; @@ -466,9 +466,8 @@ GPT_print_part(const unsigned int pn, const char *units, const int verbosity) printf("Ignore "); if (attrs & GPTPARTATTR_BOOTABLE) printf("Bootable "); - uuid_dec_be(gpt_uuid_msdos, &uuid_msdos); - if (uuid_compare(&uuid_msdos, &gp[pn].gp_type, NULL) == - 0) { + uuid_dec_be(gpt_uuid_msdos, &uuid); + if (uuid_compare(&uuid, &gp[pn].gp_type, NULL) == 0) { if (attrs & GPTPARTATTR_MS_READONLY) printf("ReadOnly " ); if (attrs & GPTPARTATTR_MS_SHADOW) |