[PATCH 1/3] lib/uuid.c: change prototype of uuid_guid_get_str()
Tom Rini
trini at konsulko.com
Mon Jan 18 14:00:25 CET 2021
On Fri, Nov 20, 2020 at 11:45:35AM +0100, Rasmus Villemoes wrote:
> 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 at prevas.dk>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210118/d6c23740/attachment.sig>
More information about the U-Boot
mailing list