chiark / gitweb /
check ifindex > 0 instead of subsystem == "net"
[elogind.git] / extras / keymap / keymap.c
index 117a41dbae594b81ad24051d7e71c94a4c4dbb36..3f01d1953ea4c0cb09d2f4ed1cc21b43d4308574 100644 (file)
@@ -32,6 +32,7 @@
 #include <fcntl.h>
 #include <getopt.h>
 #include <sys/ioctl.h>
+#include <linux/limits.h>
 #include <linux/input.h>
 
 const struct key* lookup_key (const char *str, unsigned int len);
@@ -247,7 +248,7 @@ static const char* default_keymap_path(const char* path)
 {
        static char result[PATH_MAX];
 
-       /* If keymap file is given without a path, assume udev diretory; must end with '/' * */
+       /* If keymap file is given without a path, assume udev directory; must end with '/' * */
        if (!strchr(path, '/')) {
                snprintf(result, sizeof(result), "%s%s", LIBEXECDIR "/keymaps/", path);
                return result;