kbd_mode: s/ioctl/xioctl. also saves 12 bytes
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 8 Nov 2008 21:42:14 +0000 (21:42 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 8 Nov 2008 21:42:14 +0000 (21:42 -0000)
console-tools/kbd_mode.c

index c8451e72deabb78642094a6878f9dd03ea3a829d..544bbb789485b017ab057bf42f8df29fd5d5647f 100644 (file)
@@ -32,7 +32,7 @@ int kbd_mode_main(int argc UNUSED_PARAM, char **argv)
                const char *mode = "unknown";
                int m;
 
-               ioctl(fd, KDGKBMODE, &m);
+               xioctl(fd, KDGKBMODE, &m);
                if (m == K_RAW)
                        mode = "raw (scancode)";
                else if (m == K_XLATE)