diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-18 19:16:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-18 19:16:29 +0000 |
commit | 09b0ab9b43846b464170941fd0eaec90b588d610 (patch) | |
tree | e094f29580bd672f1f019a16a9be194e04d1ba8a /src/uxa | |
parent | 996736af717fb6ea0d59a81c63f7f29968767810 (diff) |
uxa/dri: Drop dependency on stdbool
Copying the bool is_level() without including stdbool.h causes it to not
compile on some machines. Just convert back to the old faithful Bool.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/uxa')
-rw-r--r-- | src/uxa/intel_dri.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/uxa/intel_dri.c b/src/uxa/intel_dri.c index 32622ad7..524826d2 100644 --- a/src/uxa/intel_dri.c +++ b/src/uxa/intel_dri.c @@ -1488,37 +1488,37 @@ namecmp(const char *s1, const char *s2) return c1 - c2; } -static bool is_level(const char **str) +static Bool is_level(const char **str) { const char *s = *str; char *end; unsigned val; if (s == NULL || *s == '\0') - return true; + return TRUE; if (namecmp(s, "on") == 0) - return true; + return TRUE; if (namecmp(s, "true") == 0) - return true; + return TRUE; if (namecmp(s, "yes") == 0) - return true; + return TRUE; if (namecmp(s, "0") == 0) - return true; + return TRUE; if (namecmp(s, "off") == 0) - return true; + return TRUE; if (namecmp(s, "false") == 0) - return true; + return TRUE; if (namecmp(s, "no") == 0) - return true; + return TRUE; val = strtoul(s, &end, 0); if (val && *end == '\0') - return true; + return TRUE; if (val && *end == ':') *str = end + 1; - return false; + return FALSE; } static const char *options_get_dri(intel_screen_private *intel) |