diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2014-10-03 14:39:59 -0500 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-11-04 13:01:58 +0200 |
commit | 322cd6dded6db0f82e04c2b7ac9d5eb073e41ebc (patch) | |
tree | 02b2bf62e08dc8b618c986688bb2595da3f8f8f8 /src/scanner.c | |
parent | 391820b0d6d9fcd99e12cd32623a476da64c89ce (diff) |
cosmetic: convert some function returns from int to bool
[Pekka Paalanen: change is_nullable_type() return value to bool.]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src/scanner.c')
-rw-r--r-- | src/scanner.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/scanner.c b/src/scanner.c index 809130b..5e5152b 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -21,6 +21,7 @@ * OF THIS SOFTWARE. */ +#include <stdbool.h> #include <stdio.h> #include <stdarg.h> #include <string.h> @@ -288,7 +289,7 @@ warn(struct location *loc, const char *msg, ...) va_end(ap); } -static int +static bool is_nullable_type(struct arg *arg) { switch (arg->type) { @@ -297,9 +298,9 @@ is_nullable_type(struct arg *arg) case OBJECT: case NEW_ID: case ARRAY: - return 1; + return true; default: - return 0; + return false; } } |