mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
terminal/idev: avoid magic numbers
Use XKB_CONTEXT_NO_FLAGS instead of magic 0.
This commit is contained in:
parent
a2ce1730e1
commit
123a8dc84d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user