From: krw Date: Sat, 8 Apr 2023 15:25:47 +0000 (+0000) Subject: A bit more guid vs uuid naming consistency. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f3c27363bd21f814b92b6db19932f2da7679461c;p=openbsd A bit more guid vs uuid naming consistency. No functional change. --- diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index b0f68d5e0eb..d3d4cae324d 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.152 2023/04/07 14:42:51 krw Exp $ */ +/* $OpenBSD: part.c,v 1.153 2023/04/08 15:25:47 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -1112,18 +1112,18 @@ PRT_uuid_to_menuid(const struct uuid *uuid) const struct uuid * PRT_menuid_to_uuid(const int menuid) { - static struct uuid guid; + static struct uuid uuid; unsigned int i; uint32_t status = uuid_s_ok; for (i = 0; i < nitems(menu_items); i++) { if (gpt_item(i) == 0 && menu_items[i].mi_menuid == menuid) { - uuid_from_string(menu_items[i].mi_guid, &guid, &status); + uuid_from_string(menu_items[i].mi_guid, &uuid, &status); break; } } if (i == nitems(menu_items) || status != uuid_s_ok) - uuid_create_nil(&guid, NULL); + uuid_create_nil(&uuid, NULL); - return &guid; + return &uuid; }