commit | 479f54a138e7980c9302858038cbc12c7bc5cd78 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Tue Jan 09 17:57:16 2024 -0500 |
committer | Tom Rini <trini@konsulko.com> | Thu Jan 18 20:24:13 2024 -0500 |
tree | f3239c6612dec5f49afbe2c9b6c9fa598fbb5b10 | |
parent | 362bb013aa830c9185d9f369ec0e68f36d55ec67 [diff] |
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>