diff options
Diffstat (limited to 'xorg-server/xkb/ddxLoad.c')
-rw-r--r-- | xorg-server/xkb/ddxLoad.c | 18 |
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"); |