diff options
author | Denis Vlasenko | 2008-04-22 00:16:29 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-04-22 00:16:29 +0000 |
commit | 1f228985b27602f94ff973d50e276220887df6a3 (patch) | |
tree | 5715edba638603b3815dc8700c88c2c0395b2b16 /console-tools/openvt.c | |
parent | 5d89fbaa2e00a8a26e530306d76b78bf91d12ec8 (diff) | |
download | busybox-1f228985b27602f94ff973d50e276220887df6a3.zip busybox-1f228985b27602f94ff973d50e276220887df6a3.tar.gz |
whitespace fixes. no code changes
Diffstat (limited to 'console-tools/openvt.c')
-rw-r--r-- | console-tools/openvt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index 3bb0a92..c4746df 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c @@ -60,7 +60,7 @@ static int get_vt_fd(void) /* Do we, by chance, already have it? */ for (fd = 0; fd < 3; fd++) if (!not_vt_fd(fd)) - return fd; + return fd; /* _only_ O_NONBLOCK: ask for neither read not write perms */ fd = open(DEV_CONSOLE, O_NONBLOCK); if (fd >= 0 && !not_vt_fd(fd)) @@ -73,7 +73,7 @@ static int find_free_vtno(void) int vtno; int fd = get_vt_fd(); - errno = 0; + 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"); @@ -138,7 +138,7 @@ int openvt_main(int argc ATTRIBUTE_UNUSED, char **argv) close(0); /*setsid(); - BAD IDEA: after we exit, child is SIGHUPed... */ xopen(vtname, O_RDWR); - xioctl(0, VT_GETSTATE, &vtstat); + xioctl(0, VT_GETSTATE, &vtstat); if (flags & OPT_s) { xioctl(0, VT_ACTIVATE, (void*)(ptrdiff_t)vtno); |