diff options
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r-- | vtysh/vtysh_config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index fb8a1269..bfcf8e64 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -353,9 +353,7 @@ vtysh_read_file (FILE *confp) int ret; struct vty *vty; - vty = vty_new (); - vty->fd = 0; /* stdout */ - vty->type = VTY_TERM; + vty = vty_new (0, VTY_TERM); /* stdout */ vty->node = CONFIG_NODE; vtysh_execute_no_pager ("enable"); |