From: Daan De Meyer Date: Thu, 22 Sep 2022 12:54:33 +0000 (+0200) Subject: shared: Add GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER() X-Git-Tag: v252-rc1~113^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e58a0a82ca309112016dfa8793f3c37a31d93e9;p=thirdparty%2Fsystemd.git shared: Add GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER() --- diff --git a/src/shared/gpt.h b/src/shared/gpt.h index f6ed2d3eb5e..f673194d4af 100644 --- a/src/shared/gpt.h +++ b/src/shared/gpt.h @@ -16,6 +16,9 @@ const char *gpt_partition_type_uuid_to_string_harder( char buffer[static SD_ID128_UUID_STRING_MAX]); int gpt_partition_type_uuid_from_string(const char *s, sd_id128_t *ret); +#define GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER(id) \ + gpt_partition_type_uuid_to_string_harder((id), (char[SD_ID128_UUID_STRING_MAX]) {}) + Architecture gpt_partition_type_uuid_to_arch(sd_id128_t id); typedef struct GptPartitionType {