diff options
Diffstat (limited to 'xkbevd.c')
-rw-r--r-- | xkbevd.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -260,12 +260,9 @@ GetDisplay(char *program, char *dpyName, int *opcodeRtrn, int *evBaseRtrn) void InterpretConfigs(CfgEntryPtr cfg) { - char *name; - unsigned priv = 0; - config = cfg; while (cfg != NULL) { - name = cfg->name.str; + char *name = cfg->name.str; if (cfg->entry_type == VariableDef) { if (uStrCaseEqual(name, "sounddirectory") || uStrCaseEqual(name, "sounddir")) { @@ -288,7 +285,9 @@ InterpretConfigs(CfgEntryPtr cfg) uAction("Ignored\n"); } } - else if (cfg->entry_type == EventDef) + else if (cfg->entry_type == EventDef) { + unsigned int priv; + switch (cfg->event_type) { case XkbBellNotify: if (name != NULL) @@ -324,6 +323,7 @@ InterpretConfigs(CfgEntryPtr cfg) /* nothing to do */ break; } + } eventMask |= (1L << cfg->event_type); cfg = cfg->next; } |