aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkb/ddxLoad.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-02-05 12:56:11 +0000
committermarha <marha@users.sourceforge.net>2010-02-05 12:56:11 +0000
commit7fe172c9035f56977209da12a7fd67d8badd71a2 (patch)
treeb8e23664e5fefebcb80cc0657674db1b8c46ceba /xorg-server/xkb/ddxLoad.c
parent007385f704a99ab49dab0789f9c330a1a3a455be (diff)
downloadvcxsrv-7fe172c9035f56977209da12a7fd67d8badd71a2.tar.gz
vcxsrv-7fe172c9035f56977209da12a7fd67d8badd71a2.tar.bz2
vcxsrv-7fe172c9035f56977209da12a7fd67d8badd71a2.zip
Git update 5/2/2010
Diffstat (limited to 'xorg-server/xkb/ddxLoad.c')
-rw-r--r--xorg-server/xkb/ddxLoad.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/xorg-server/xkb/ddxLoad.c b/xorg-server/xkb/ddxLoad.c
index 72aff2ac0..4ccdddaf0 100644
--- a/xorg-server/xkb/ddxLoad.c
+++ b/xorg-server/xkb/ddxLoad.c
@@ -266,7 +266,7 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb,
}
if (buf != NULL)
xfree (buf);
- return True;
+ return TRUE;
}
else
LogMessage(X_ERROR, "Error compiling keymap (%s)\n", keymap);
@@ -286,7 +286,7 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb,
nameRtrn[0]= '\0';
if (buf != NULL)
xfree (buf);
- return False;
+ return FALSE;
}
static FILE *
@@ -386,38 +386,38 @@ Bool complete;
XkbRF_RulesPtr rules;
if (!rules_name)
- return False;
+ return FALSE;
if (strlen(XkbBaseDirectory) + strlen(rules_name) + 8 > PATH_MAX) {
LogMessage(X_ERROR, "XKB: Rules name is too long\n");
- return False;
+ return FALSE;
}
sprintf(buf,"%s/rules/%s", XkbBaseDirectory, rules_name);
file = fopen(buf, "r");
if (!file) {
LogMessage(X_ERROR, "XKB: Couldn't open rules file %s\n", buf);
- return False;
+ return FALSE;
}
rules = XkbRF_Create();
if (!rules) {
LogMessage(X_ERROR, "XKB: Couldn't create rules struct\n");
fclose(file);
- return False;
+ return FALSE;
}
if (!XkbRF_LoadRules(file, rules)) {
LogMessage(X_ERROR, "XKB: Couldn't parse rules file %s\n", rules_name);
fclose(file);
- XkbRF_Free(rules,True);
- return False;
+ XkbRF_Free(rules,TRUE);
+ return FALSE;
}
memset(names, 0, sizeof(*names));
complete = XkbRF_GetComponents(rules,defs,names);
fclose(file);
- XkbRF_Free(rules, True);
+ XkbRF_Free(rules, TRUE);
if (!complete)
LogMessage(X_ERROR, "XKB: Rules returned no components\n");