aboutsummaryrefslogtreecommitdiff
path: root/toys/other/oneit.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-11-02 20:07:02 -0500
committerRob Landley <rob@landley.net>2018-11-02 20:07:02 -0500
commit6a73e13d75d31da2c3f1145d8487725f0073a4b8 (patch)
tree17b5bb8b6b5e94b1c93818954cf322a39941a4be /toys/other/oneit.c
parent49e1d8733ebcaf130623c68a2393a3c43702a524 (diff)
downloadtoybox-6a73e13d75d31da2c3f1145d8487725f0073a4b8.tar.gz
Convert more option vars to the new (single letter) coding style.
Diffstat (limited to 'toys/other/oneit.c')
-rw-r--r--toys/other/oneit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/other/oneit.c b/toys/other/oneit.c
index 681eb12f..2ee21768 100644
--- a/toys/other/oneit.c
+++ b/toys/other/oneit.c
@@ -32,7 +32,7 @@ config ONEIT
#include <sys/reboot.h>
GLOBALS(
- char *console;
+ char *c;
)
// The minimum amount of work necessary to get ctrl-c and such to work is:
@@ -97,7 +97,7 @@ void oneit_main(void)
for (i=0; i<3; i++) {
close(i);
// Remember, O_CLOEXEC is backwards for xopen()
- xopen_stdio(TT.console ? TT.console : "/dev/tty0", O_RDWR|O_CLOEXEC);
+ xopen_stdio(TT.c ? TT.c : "/dev/tty0", O_RDWR|O_CLOEXEC);
}
// Can't xexec() here, we vforked so we don't want to error_exit().