summaryrefslogtreecommitdiff
path: root/xkb/maprules.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-03-25 23:09:50 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-03-25 23:09:50 +0000
commitd7b9e2b0e9d6889ea6b05e63892e612f4e5f19f5 (patch)
tree080fe7bfb71b281ef9e9f161397be3aab923965c /xkb/maprules.c
parentb3570dd94aa72f94e537a17680150e91e7712f5a (diff)
Bug #3819: Remove open-coding of strcasecmp.
Diffstat (limited to 'xkb/maprules.c')
-rw-r--r--xkb/maprules.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xkb/maprules.c b/xkb/maprules.c
index 3c4905ad1..6ab8e26eb 100644
--- a/xkb/maprules.c
+++ b/xkb/maprules.c
@@ -1106,13 +1106,13 @@ int len,headingtype,extra_ndx = 0;
for ( ; GetInputLine(file,&line,False); line.num_line= 0) {
if (line.line[0]=='!') {
tok = strtok(&(line.line[1]), " \t");
- if (!_XkbStrCaseCmp(tok,"model"))
+ if (strcmp(tolower(tok),"model") == 0)
headingtype = HEAD_MODEL;
- else if (!_XkbStrCaseCmp(tok,"layout"))
+ else if (strcmp(tolower(tok),"layout") == 0)
headingtype = HEAD_LAYOUT;
- else if (!_XkbStrCaseCmp(tok,"variant"))
+ else if (strcmp(tolower(tok),"variant") == 0)
headingtype = HEAD_VARIANT;
- else if (!_XkbStrCaseCmp(tok,"option"))
+ else if (strcmp(tolower(tok),"option") == 0)
headingtype = HEAD_OPTION;
else {
int i;