diff options
author | Grant Likely <grant.likely@linaro.org> | 2015-06-30 14:28:52 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2015-06-30 14:28:52 +0100 |
commit | becfc3c86df963491ff1d5ffc6131a06af6bb851 (patch) | |
tree | 4b60fb962445166025724b84ce13e7f1762df8a1 /scripts/dtc/util.h | |
parent | ce32f859646bab2ed724393398b90aa50149bb44 (diff) | |
parent | 0b34c1a489f6f018c4fbfbd12657acaa0b4f4ca9 (diff) | |
download | op-kernel-dev-becfc3c86df963491ff1d5ffc6131a06af6bb851.zip op-kernel-dev-becfc3c86df963491ff1d5ffc6131a06af6bb851.tar.gz |
Merge remote-tracking branch 'robh/for-next' into devicetree/next
Diffstat (limited to 'scripts/dtc/util.h')
-rw-r--r-- | scripts/dtc/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dtc/util.h b/scripts/dtc/util.h index 8f40b44..f800b60 100644 --- a/scripts/dtc/util.h +++ b/scripts/dtc/util.h @@ -2,6 +2,7 @@ #define _UTIL_H #include <stdarg.h> +#include <stdbool.h> #include <getopt.h> /* @@ -33,6 +34,7 @@ static inline void __attribute__((noreturn)) die(const char *str, ...) va_start(ap, str); fprintf(stderr, "FATAL ERROR: "); vfprintf(stderr, str, ap); + va_end(ap); exit(1); } @@ -68,7 +70,7 @@ extern char *join_path(const char *path, const char *name); * @param len The string length including terminator * @return 1 if a valid printable string, 0 if not */ -int util_is_printable_string(const void *data, int len); +bool util_is_printable_string(const void *data, int len); /* * Parse an escaped character starting at index i in string s. The resulting |