chiark / gitweb /
terminal/idev: avoid magic numbers
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 25 Nov 2014 09:24:08 +0000 (10:24 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 25 Nov 2014 09:24:08 +0000 (10:24 +0100)
Use XKB_CONTEXT_NO_FLAGS instead of magic 0.

src/libsystemd-terminal/idev-keyboard.c

index eca38fc7a9dd5de7b1d6dbb08da133e30ab9b0d6..c690c6647f3fec2fd5838be4eb6d426b1518fb23 100644 (file)
@@ -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;