From a48308701a4d89d7cc0d0557cfabaec94a0bb3b0 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 26 Oct 2009 23:27:08 +0100 Subject: add and use xopen_nonblocking (-18b) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Denys Vlasenko --- console-tools/kbd_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console-tools/kbd_mode.c') diff --git a/console-tools/kbd_mode.c b/console-tools/kbd_mode.c index 544bbb7..e1d8523 100644 --- a/console-tools/kbd_mode.c +++ b/console-tools/kbd_mode.c @@ -25,7 +25,7 @@ int kbd_mode_main(int argc UNUSED_PARAM, char **argv) const char *tty_name = CURRENT_TTY; opt = getopt32(argv, "sakuC:", &tty_name); - fd = xopen(tty_name, O_NONBLOCK); + fd = xopen_nonblocking(tty_name); opt &= 0xf; /* clear -C bit, see (*) */ if (!opt) { /* print current setting */ -- cgit v1.1