]> git.baikalelectronics.ru Git - uboot.git/commit
lib/uuid.c: change prototype of uuid_guid_get_str()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 20 Nov 2020 10:45:35 +0000 (11:45 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 16 Jan 2021 19:49:09 +0000 (14:49 -0500)
commitc155c9f5cfb2a662333c79d4495b1e2a7a591407
treeabe69d421178391a6cffe43b6c231d92f9100ef8
parent1bc78b200ea6a78b1ad0f7f483526363f572b615
lib/uuid.c: change prototype of uuid_guid_get_str()

There's no reason to require an appropriately sized output parameter
for the string, that's error-prone should the table ever grow an
element with a longer string. We can just return the const char*
pointer directly.

Update the only caller accordingly, and get rid of pointless ifdeffery
in the header so that the compiler always sees a declaration and can
thus do type-checking, whether or not PARTITION_TYPE_GUID is enabled
or not.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
disk/part_efi.c
include/uuid.h
lib/uuid.c