From 6a73e13d75d31da2c3f1145d8487725f0073a4b8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 2 Nov 2018 20:07:02 -0500 Subject: Convert more option vars to the new (single letter) coding style. --- toys/other/switch_root.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toys/other/switch_root.c') diff --git a/toys/other/switch_root.c b/toys/other/switch_root.c index acbae2bb..eb1e2b0c 100644 --- a/toys/other/switch_root.c +++ b/toys/other/switch_root.c @@ -22,7 +22,7 @@ config SWITCH_ROOT #include GLOBALS( - char *console; + char *c; dev_t rootdev; ) @@ -78,8 +78,8 @@ void switch_root_main(void) goto panic; } - if (TT.console && -1 == (console = open(TT.console, O_RDWR))) { - perror_msg("bad console '%s'", TT.console); + if (TT.c && -1 == (console = open(TT.c, O_RDWR))) { + perror_msg("bad console '%s'", TT.c); goto panic; } @@ -104,7 +104,7 @@ void switch_root_main(void) goto panic; } - if (TT.console) { + if (TT.c) { int i; for (i=0; i<3; i++) if (console != i) dup2(console, i); if (console>2) close(console); -- cgit v1.2.3