chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc3ebcb
)
extras/keymap: use LIBEXECDIR instead /lib/udev
author
Kay Sievers
<kay.sievers@vrfy.org>
Wed, 17 Jun 2009 14:18:04 +0000
(16:18 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Wed, 17 Jun 2009 14:18:04 +0000
(16:18 +0200)
extras/keymap/keymap.c
patch
|
blob
|
history
diff --git
a/extras/keymap/keymap.c
b/extras/keymap/keymap.c
index 454fc835c9f98f7fd0b47ee53a80ed0ff12f4f70..b708f38e7b838259a991dc9d78de720dbb2a28df 100644
(file)
--- a/
extras/keymap/keymap.c
+++ b/
extras/keymap/keymap.c
@@
-41,9
+41,6
@@
const struct key* lookup_key (const char *str, unsigned int len);
#define MAX_SCANCODES 1024
#define MAX_SCANCODES 1024
-/* If keymap file is given without a path, assume this one; must end with '/' * */
-#define DEFAULT_PATH "/lib/udev/keymaps/"
-
static int evdev_open(const char *dev)
{
int fd;
static int evdev_open(const char *dev)
{
int fd;
@@
-222,8
+219,9
@@
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 (!strchr(path, '/')) {
if (!strchr(path, '/')) {
- snprintf(result, sizeof(result), "%s%s",
DEFAULT_PATH
, path);
+ snprintf(result, sizeof(result), "%s%s",
LIBEXECDIR "/keymaps/"
, path);
return result;
}
return path;
return result;
}
return path;