diff options
author | Bin Meng <bmeng@tinylab.org> | 2022-12-21 14:38:06 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-01-06 14:56:35 +0300 |
commit | 440fa818fbffd0771d75890c4fcda062ceab7ebd (patch) | |
tree | ddc51462269d7532149eab1bd60000158c37a535 /lib/sbi/sbi_console.c | |
parent | 6b5188ca14e59ce7bf71afe4e7d3d557c3d31bf8 (diff) | |
download | opensbi-440fa818fbffd0771d75890c4fcda062ceab7ebd.tar.xz |
treewide: Replace TRUE/FALSE with true/false
C language standard uses true/false for the boolean type.
Let's switch to that for better language compatibility.
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'lib/sbi/sbi_console.c')
-rw-r--r-- | lib/sbi/sbi_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c index cfef2f8..bb6e1ef 100644 --- a/lib/sbi/sbi_console.c +++ b/lib/sbi/sbi_console.c @@ -20,9 +20,9 @@ bool sbi_isprintable(char c) { if (((31 < c) && (c < 127)) || (c == '\f') || (c == '\r') || (c == '\n') || (c == '\t')) { - return TRUE; + return true; } - return FALSE; + return false; } int sbi_getc(void) |