chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check ifindex > 0 instead of subsystem == "net"
[elogind.git]
/
extras
/
keymap
/
keymap.c
diff --git
a/extras/keymap/keymap.c
b/extras/keymap/keymap.c
index 117a41dbae594b81ad24051d7e71c94a4c4dbb36..3f01d1953ea4c0cb09d2f4ed1cc21b43d4308574 100644
(file)
--- a/
extras/keymap/keymap.c
+++ b/
extras/keymap/keymap.c
@@
-32,6
+32,7
@@
#include <fcntl.h>
#include <getopt.h>
#include <sys/ioctl.h>
#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);
#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];
{
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 dire
c
tory; must end with '/' * */
if (!strchr(path, '/')) {
snprintf(result, sizeof(result), "%s%s", LIBEXECDIR "/keymaps/", path);
return result;
if (!strchr(path, '/')) {
snprintf(result, sizeof(result), "%s%s", LIBEXECDIR "/keymaps/", path);
return result;