From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 18 Jan 2021 08:00:25 -0500 Subject: [PATCH 1/3] lib/uuid.c: change prototype of uuid_guid_get_str() In-Reply-To: <20201120104537.619-2-rasmus.villemoes@prevas.dk> References: <07954a18-fc7d-aaa2-cd1c-649c131b485a@prevas.dk> <20201120104537.619-1-rasmus.villemoes@prevas.dk> <20201120104537.619-2-rasmus.villemoes@prevas.dk> Message-ID: <20210118130025.GM9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: