From 17625371eeea2fa7257361163c52d336a1a98ebc Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 28 Oct 2013 21:06:53 +1100 Subject: 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 --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index e87d6c1..2347af9 100644 --- a/util.c +++ b/util.c @@ -70,7 +70,7 @@ char *join_path(const char *path, const char *name) return str; } -int util_is_printable_string(const void *data, int len) +bool util_is_printable_string(const void *data, int len) { const char *s = data; const char *ss, *se; -- cgit v1.1