getchar(): Correct usage
authorTom Rini <trini@konsulko.com>
Tue, 9 Jan 2024 22:57:16 +0000 (17:57 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2024 01:24:13 +0000 (20:24 -0500)
commit21a2c129adaab04a7a032a31c816ae09375fe954
treef3239c6612dec5f49afbe2c9b6c9fa598fbb5b10
parentbded9f13b28f10e1248016f1e156ffcea1f6731d
getchar(): Correct usage

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@konsulko.com>
cmd/load.c
common/cli_readline.c