diff options
Diffstat (limited to 'console-client/xkb/parser.y')
-rw-r--r-- | console-client/xkb/parser.y | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y index 1ce52f8e..48009457 100644 --- a/console-client/xkb/parser.y +++ b/console-client/xkb/parser.y @@ -1582,23 +1582,10 @@ parse_xkbconfig (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap) else skip_to_defaultsection(); } - else /* Use defaults. */ + else { - extern char *default_xkb_keymap; - filename = "<<INTERNAL>>"; - - yyin = tmpfile (); - //yyin = fopen ("TEST", "w+"); - - if (yyin == NULL) - { - fprintf (stderr, "Couldn't create tmp file.\n"); - return errno; - } - /* XXX: error handling. */ - fprintf (yyin, "%s\n", default_xkb_keymap); - - rewind (yyin); + free (cwd); + return EINVAL; } err = yyparse (); fclose (yyin); |