diff options
Diffstat (limited to 'console-tools/openvt.c')
-rw-r--r-- | console-tools/openvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index b01229a56..9e6cffecc 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c @@ -87,7 +87,7 @@ static int get_vt_fd(void) fd = open(DEV_CONSOLE, O_RDONLY | O_NONBLOCK); if (fd >= 0 && !not_vt_fd(fd)) return fd; - bb_error_msg_and_die("can't find open VT"); + bb_simple_error_msg_and_die("can't find open VT"); } static int find_free_vtno(void) @@ -98,7 +98,7 @@ static int find_free_vtno(void) errno = 0; /*xfunc_error_retval = 3; - do we need compat? */ if (ioctl(fd, VT_OPENQRY, &vtno) != 0 || vtno <= 0) - bb_perror_msg_and_die("can't find open VT"); + bb_simple_perror_msg_and_die("can't find open VT"); // Not really needed, grep for DAEMON_CLOSE_EXTRA_FDS // if (fd > 2) // close(fd); |