summaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-10-14 18:59:53 +0300
committerRan Benita <ran234@gmail.com>2013-10-14 18:59:53 +0300
commitdcdd4e103035e17350b8b6ecf7df2d02b4d29822 (patch)
tree43909667fdae1b75b73d2ccba56a5688374ad574 /src/context.c
parent14382a62ab1430223490516cb84b181456999dc7 (diff)
downloadxorg-lib-libxkbcommon-dcdd4e103035e17350b8b6ecf7df2d02b4d29822.tar.gz
Replace ctype.h functions with ascii ones
ctype.h is locale-dependent, so using it in our scanners is not optimal. Let's be deterministic with our own simple functions. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/context.c b/src/context.c
index 1e148da..bf76ac2 100644
--- a/src/context.c
+++ b/src/context.c
@@ -26,7 +26,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <ctype.h>
#include <errno.h>
#include <unistd.h>
@@ -246,7 +245,7 @@ log_level(const char *level) {
errno = 0;
lvl = strtol(level, &endptr, 10);
- if (errno == 0 && (endptr[0] == '\0' || isspace(endptr[0])))
+ if (errno == 0 && (endptr[0] == '\0' || is_space(endptr[0])))
return lvl;
if (istreq_prefix("crit", level))
return XKB_LOG_LEVEL_CRITICAL;