summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-11-25 10:24:08 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2014-11-25 10:24:08 +0100
commit123a8dc84db405d3001fd02d224a02ebe6ec0b18 (patch)
treefb084abc4b89cde068b3f9ddd1f2e9cede5c687e /src/libsystemd-terminal
parenta2ce1730e12eda3112b3e84e0810f9913ce5c57c (diff)
terminal/idev: avoid magic numbers
Use XKB_CONTEXT_NO_FLAGS instead of magic 0.
Diffstat (limited to 'src/libsystemd-terminal')
-rw-r--r--src/libsystemd-terminal/idev-keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/idev-keyboard.c b/src/libsystemd-terminal/idev-keyboard.c
index eca38fc7a9..c690c6647f 100644
--- a/src/libsystemd-terminal/idev-keyboard.c
+++ b/src/libsystemd-terminal/idev-keyboard.c
@@ -558,7 +558,7 @@ static int kbdctx_new(kbdctx **out, idev_context *c) {
kc->context = c;
errno = 0;
- kc->xkb_context = xkb_context_new(0);
+ kc->xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (!kc->xkb_context)
return errno > 0 ? -errno : -EFAULT;