summaryrefslogtreecommitdiff
path: root/console-tools/chvt.c
diff options
context:
space:
mode:
authorRob Landley2006-03-10 23:16:25 +0000
committerRob Landley2006-03-10 23:16:25 +0000
commitead19306f5d6d5d5ef49165aa518e525de8e84b2 (patch)
tree50e2c88bee71b9c4da3b54f951d337c112a85c03 /console-tools/chvt.c
parentbc68cd14ccaebc17e7e03a08e51fddfb91007624 (diff)
downloadbusybox-ead19306f5d6d5d5ef49165aa518e525de8e84b2.zip
busybox-ead19306f5d6d5d5ef49165aa518e525de8e84b2.tar.gz
Cleanup patches from tito.
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r--console-tools/chvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index 252aed7..cba5b40 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -44,8 +44,8 @@ int chvt_main(int argc, char **argv)
fd = get_console_fd();
num = bb_xgetlarg(argv[1], 10, 0, INT_MAX);
- if((-1 == ioctl(fd, VT_ACTIVATE, num)) ||
- (-1 == ioctl(fd, VT_WAITACTIVE, num))) {
+ if ((-1 == ioctl(fd, VT_ACTIVATE, num))
+ || (-1 == ioctl(fd, VT_WAITACTIVE, num))) {
bb_perror_msg_and_die("ioctl");
}
return EXIT_SUCCESS;