From 81e20ffd434953e62f60f1144ab76bebe82d59b6 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sat, 17 Apr 2010 00:11:12 +0100 Subject: Further warnings removed for gcc 4.2.1. --- lib/vty_cli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/vty_cli.c') 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 */ } ; } ; -- cgit v1.2.3