aboutsummaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2013-10-28 21:06:53 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2013-10-28 21:06:53 +1100
commit17625371eeea2fa7257361163c52d336a1a98ebc (patch)
tree9d6ebe9b93acaa2b962d2a6993b4e3b00ce0c708 /dtc.h
parent79eebb23dbf1f6eeff1789cd0d6f1c1fe620a487 (diff)
downloaddtc-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.h')
-rw-r--r--dtc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dtc.h b/dtc.h
index 264a20c..20e4d56 100644
--- a/dtc.h
+++ b/dtc.h
@@ -118,7 +118,7 @@ struct data data_append_align(struct data d, int align);
struct data data_add_marker(struct data d, enum markertype type, char *ref);
-int data_is_one_string(struct data d);
+bool data_is_one_string(struct data d);
/* DT constraints */
@@ -127,13 +127,13 @@ int data_is_one_string(struct data d);
/* Live trees */
struct label {
- int deleted;
+ bool deleted;
char *label;
struct label *next;
};
struct property {
- int deleted;
+ bool deleted;
char *name;
struct data val;
@@ -143,7 +143,7 @@ struct property {
};
struct node {
- int deleted;
+ bool deleted;
char *name;
struct property *proplist;
struct node *children;
@@ -248,7 +248,7 @@ void sort_tree(struct boot_info *bi);
/* Checks */
void parse_checks_option(bool warn, bool error, const char *optarg);
-void process_checks(int force, struct boot_info *bi);
+void process_checks(bool force, struct boot_info *bi);
/* Flattened trees */