From: David Herrmann Date: Tue, 25 Nov 2014 09:24:08 +0000 (+0100) Subject: terminal/idev: avoid magic numbers X-Git-Tag: v218~377 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=123a8dc84db405d3001fd02d224a02ebe6ec0b18;p=elogind.git terminal/idev: avoid magic numbers Use XKB_CONTEXT_NO_FLAGS instead of magic 0. --- diff --git a/src/libsystemd-terminal/idev-keyboard.c b/src/libsystemd-terminal/idev-keyboard.c index eca38fc7a..c690c6647 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;