diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-04-04 05:18:14 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-04-04 05:21:35 +0200 |
commit | fc863deadaf07da24f3593fca6c6e09b62cd772c (patch) | |
tree | 27ffd57657a907fb49f965e27521c803aabae65a /src/udev/keymap/keymap.c | |
parent | 3e2147858f21943d5f4a781c60f33ac22c6096ed (diff) |
udev: fix gcc warnings
Diffstat (limited to 'src/udev/keymap/keymap.c')
-rw-r--r-- | src/udev/keymap/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/keymap/keymap.c b/src/udev/keymap/keymap.c index 4c30ccf314..cc37a9b8c2 100644 --- a/src/udev/keymap/keymap.c +++ b/src/udev/keymap/keymap.c @@ -418,8 +418,9 @@ int main(int argc, char **argv) /* Keymap file argument is a filename */ /* Open override file if present, otherwise default file */ char keymap_path[PATH_MAX]; + FILE *f; snprintf(keymap_path, sizeof(keymap_path), "%s%s", SYSCONFDIR "/udev/keymaps/", filearg); - FILE *f = fopen(keymap_path, "r"); + f = fopen(keymap_path, "r"); if (f) { merge_table(fd, f); } else { |