[PATCH] getchar(): Correct usage

Tom Rini trini at konsulko.com
Fri Jan 19 17:10:08 CET 2024


On Tue, Jan 09, 2024 at 05:57:16PM -0500, Tom Rini wrote:

> The function getchar() returns an 'int' and not a 'char'. Coverity notes
> that "Assigning the return value of getchar to char ... truncates its value."
> and so for the most part we can resolve this easily by using 'int' as
> intended, and often used throughout the codebase. A few places are not
> so simple and would require further re-architecting of the code in order
> to change this, so we leave them be.
> 
> Signed-off-by: Tom Rini <trini at konsulko.com>

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/20240119/71ddce09/attachment.sig>


More information about the U-Boot mailing list