summaryrefslogtreecommitdiff
path: root/src/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-18 19:16:29 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-02-18 19:16:29 +0000
commit09b0ab9b43846b464170941fd0eaec90b588d610 (patch)
treee094f29580bd672f1f019a16a9be194e04d1ba8a /src/uxa
parent996736af717fb6ea0d59a81c63f7f29968767810 (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.c22
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)