diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-10-28 21:06:53 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2013-10-28 21:06:53 +1100 |
commit | 17625371eeea2fa7257361163c52d336a1a98ebc (patch) | |
tree | 9d6ebe9b93acaa2b962d2a6993b4e3b00ce0c708 /dtc-parser.y | |
parent | 79eebb23dbf1f6eeff1789cd0d6f1c1fe620a487 (diff) | |
download | dtc-17625371eeea2fa7257361163c52d336a1a98ebc.zip dtc-17625371eeea2fa7257361163c52d336a1a98ebc.tar.gz dtc-17625371eeea2fa7257361163c52d336a1a98ebc.tar.bz2 |
Use stdbool more widely
We already use the C99 bool type from stdbool.h in a few places. However
there are many other places we represent boolean values as plain ints.
This patch changes that.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-parser.y')
-rw-r--r-- | dtc-parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dtc-parser.y b/dtc-parser.y index f412460..4864631 100644 --- a/dtc-parser.y +++ b/dtc-parser.y @@ -31,7 +31,7 @@ extern void print_error(char const *fmt, ...); extern void yyerror(char const *s); extern struct boot_info *the_boot_info; -extern int treesource_error; +extern bool treesource_error; static unsigned long long eval_literal(const char *s, int base, int bits); static unsigned char eval_char_literal(const char *s); @@ -478,7 +478,7 @@ void print_error(char const *fmt, ...) srcpos_verror(&yylloc, fmt, va); va_end(va); - treesource_error = 1; + treesource_error = true; } void yyerror(char const *s) { |