summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-07-11 03:19:40 +0000
committerRoland McGrath <roland@gnu.org>1999-07-11 03:19:40 +0000
commitca0f01b1715a3dcf2926eccebf8290822d1edd64 (patch)
tree6f6c396b82fc2032c6d027d98c2888bb34f49358
parent86e6bf3e3a183b3bf5b4ea3b11eecbe0eb040624 (diff)
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* console-run.c (open_console): Move first setting of TERMINAL and ARGZ_LEN outside of loop, quiets compiler warning.
-rw-r--r--daemons/console-run.c9
1 files 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;