From ca0f01b1715a3dcf2926eccebf8290822d1edd64 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 11 Jul 1999 03:19:40 +0000 Subject: 1999-07-10 Roland McGrath * console-run.c (open_console): Move first setting of TERMINAL and ARGZ_LEN outside of loop, quiets compiler warning. --- daemons/console-run.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/daemons/console-run.c b/daemons/console-run.c index 12a00045..0cb764d0 100644 --- a/daemons/console-run.c +++ b/daemons/console-run.c @@ -127,14 +127,11 @@ open_console (char **namep) return 0; } + terminal = TERMINAL_FIRST_TRY; + argz_len = sizeof TERMINAL_FIRST_TRY; for (try = 1; try < 3; ++try) { - if (try == 1) - { - terminal = TERMINAL_FIRST_TRY; - argz_len = sizeof TERMINAL_FIRST_TRY; - } - else if (try == 2) + if (try == 2) { terminal = TERMINAL_SECOND_TRY; argz_len = sizeof TERMINAL_SECOND_TRY; -- cgit v1.2.3