mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
kbd_mode: s/ioctl/xioctl. also saves 12 bytes
This commit is contained in:
parent
dc70069a46
commit
4febd91326
@ -32,7 +32,7 @@ int kbd_mode_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
const char *mode = "unknown";
|
const char *mode = "unknown";
|
||||||
int m;
|
int m;
|
||||||
|
|
||||||
ioctl(fd, KDGKBMODE, &m);
|
xioctl(fd, KDGKBMODE, &m);
|
||||||
if (m == K_RAW)
|
if (m == K_RAW)
|
||||||
mode = "raw (scancode)";
|
mode = "raw (scancode)";
|
||||||
else if (m == K_XLATE)
|
else if (m == K_XLATE)
|
||||||
|
Loading…
Reference in New Issue
Block a user