summaryrefslogtreecommitdiff
path: root/src/xkbcomp/rules.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-06-29 17:05:33 +0300
committerRan Benita <ran234@gmail.com>2012-07-01 00:51:56 +0300
commit48b4d30aa39a0d41490b8099576909fda73d3a75 (patch)
treef580ec980e31eacd5d404cc0b9fff28194f1189d /src/xkbcomp/rules.c
parent8f257397af28b1107c2a93da55ee74f7b7e8bd1f (diff)
Use enum for file types
enums are nice for some type safety and readability. This one also removes the distinction between file type mask / file type index and some naming consistency. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/rules.c')
-rw-r--r--src/xkbcomp/rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbcomp/rules.c b/src/xkbcomp/rules.c
index 52e93ba..dc02cb3 100644
--- a/src/xkbcomp/rules.c
+++ b/src/xkbcomp/rules.c
@@ -1059,7 +1059,7 @@ xkb_components_from_rules(struct xkb_context *ctx,
struct rules *rules;
struct xkb_component_names *kccgst = NULL;
- file = XkbFindFileInPath(ctx, rmlvo->rules, XkmRulesFile, &path);
+ file = XkbFindFileInPath(ctx, rmlvo->rules, FILE_TYPE_RULES, &path);
if (!file) {
ERROR("could not find \"%s\" rules in XKB path\n", rmlvo->rules);
ERROR("%d include paths searched:\n",