summaryrefslogtreecommitdiffstats
path: root/lib/vty_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty_cli.c')
-rw-r--r--lib/vty_cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vty_cli.c b/lib/vty_cli.c
index ff86b558..461d511e 100644
--- a/lib/vty_cli.c
+++ b/lib/vty_cli.c
@@ -538,6 +538,7 @@ uty_cli_dispatch(vty_io vio)
switch (cli_do)
{
case cli_do_nothing:
+ ret = CMD_SUCCESS ;
break ;
case cli_do_command:
@@ -572,12 +573,12 @@ uty_cli_dispatch(vty_io vio)
if (ret == CMD_QUEUED)
{
uty_cli_draw(vio) ; /* draw the prompt */
- return 0 ; /* command not complete */
+ return false ; /* command not complete */
}
else
{
uty_cli_cmd_complete(vio, ret) ;
- return 1 ; /* command complete */
+ return true ; /* command complete */
} ;
} ;