summaryrefslogtreecommitdiff
path: root/extras/keymap
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-15 00:19:45 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-15 00:19:45 +0200
commit135f3e8d0b4b4968908421b677c9ef2ba860b71d (patch)
treed58306941908a33aee4fd364bee5d8efba88cf45 /extras/keymap
parent7459bcdc8d12fdb217efd4a27a509f9f87ec7b1e (diff)
fix more warnings
Diffstat (limited to 'extras/keymap')
-rw-r--r--extras/keymap/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/keymap/keymap.c b/extras/keymap/keymap.c
index eabd1e44d8..597a53b467 100644
--- a/extras/keymap/keymap.c
+++ b/extras/keymap/keymap.c
@@ -192,8 +192,7 @@ static int merge_table(int fd, const char *filename) {
f = fopen(filename, "r");
if (!f) {
perror(filename);
- r = -1;
- goto fail;
+ return -1;
}
while (!feof(f)) {
@@ -243,6 +242,7 @@ static int merge_table(int fd, const char *filename) {
scancode, new_keycode, old_keycode);
}
fail:
+ fclose(f);
return r;
}