diff options
author | imp <imp@FreeBSD.org> | 2014-01-27 19:37:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-01-27 19:37:35 +0000 |
commit | 245519112ad9a80872af31e5dad95e35b2fb8e4b (patch) | |
tree | 537a25089d633174ecc19fba14fb7aa99e314ef1 /contrib/dtc/data.c | |
parent | 3230712bf1c2a65fe6acda7398684844cc99c553 (diff) | |
download | FreeBSD-src-245519112ad9a80872af31e5dad95e35b2fb8e4b.zip FreeBSD-src-245519112ad9a80872af31e5dad95e35b2fb8e4b.tar.gz |
Merge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a
Diffstat (limited to 'contrib/dtc/data.c')
-rw-r--r-- | contrib/dtc/data.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/dtc/data.c b/contrib/dtc/data.c index 4a40c5b..4c50b12 100644 --- a/contrib/dtc/data.c +++ b/contrib/dtc/data.c @@ -250,20 +250,20 @@ struct data data_add_marker(struct data d, enum markertype type, char *ref) return data_append_markers(d, m); } -int data_is_one_string(struct data d) +bool data_is_one_string(struct data d) { int i; int len = d.len; if (len == 0) - return 0; + return false; for (i = 0; i < len-1; i++) if (d.val[i] == '\0') - return 0; + return false; if (d.val[len-1] != '\0') - return 0; + return false; - return 1; + return true; } |