summaryrefslogtreecommitdiffstats
path: root/lib/vty_cli.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-17 00:11:12 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-17 00:11:12 +0100
commit81e20ffd434953e62f60f1144ab76bebe82d59b6 (patch)
tree2cc05ed4fc1a9949524a9ecd69289875ce0bc493 /lib/vty_cli.c
parent075b751cfe1ae87c416eceb68e01b5f8b9a9e92b (diff)
downloadquagga-81e20ffd434953e62f60f1144ab76bebe82d59b6.tar.bz2
quagga-81e20ffd434953e62f60f1144ab76bebe82d59b6.tar.xz
Further warnings removed for gcc 4.2.1.
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 */
} ;
} ;