diff options
author | paul <paul> | 2005-03-09 13:39:26 +0000 |
---|---|---|
committer | paul <paul> | 2005-03-09 13:39:26 +0000 |
commit | a3813181585f7facbae3e585beaea517fa2d73cf (patch) | |
tree | 3b45af6c8437cdfc1dc839b9c8e9ec733e15686d /lib/command.c | |
parent | ec3977257439a7eb959622e15b5fa52b56e036a6 (diff) | |
download | quagga-a3813181585f7facbae3e585beaea517fa2d73cf.tar.bz2 quagga-a3813181585f7facbae3e585beaea517fa2d73cf.tar.xz |
2005-03-09 Paul Jakma <paul.jakma@sun.com>
* command.c: Undo commit of sign warning fix and hidden command
in list_cmd. Sign warning is more subtle. list_cmd on its own
will be committed after.
Diffstat (limited to 'lib/command.c')
-rw-r--r-- | lib/command.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/command.c b/lib/command.c index fed40be5..42a8bf77 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1,6 +1,6 @@ /* $Id$ - + Command interpreter routine for virtual terminal [aka TeletYpe] Copyright (C) 1997, 98, 99 Kunihiro Ishiguro @@ -1561,12 +1561,12 @@ cmd_try_do_shortcut (enum node_type node, char* first_word) { static vector cmd_describe_command_real (vector vline, struct vty *vty, int *status) { - unsigned int i; + int i; vector cmd_vector; #define INIT_MATCHVEC_SIZE 10 vector matchvec; struct cmd_element *cmd_element; - unsigned int index; + int index; int ret; enum match_type match; char *command; @@ -1757,12 +1757,12 @@ cmd_lcd (char **matched) static char ** cmd_complete_command_real (vector vline, struct vty *vty, int *status) { - unsigned int i; + int i; vector cmd_vector = vector_copy (cmd_node_vector (cmdvec, vty->node)); #define INIT_MATCHVEC_SIZE 10 vector matchvec; struct cmd_element *cmd_element; - unsigned int index = vector_max (vline) - 1; + int index = vector_max (vline) - 1; char **match_str; struct desc *desc; vector descvec; @@ -2483,9 +2483,7 @@ DEFUN (config_list, struct cmd_element *cmd; for (i = 0; i < vector_max (cnode->cmd_vector); i++) - if ((cmd = vector_slot (cnode->cmd_vector, i)) != NULL - && !(cmd->attr == CMD_ATTR_DEPRECATED - || cmd->attr == CMD_ATTR_HIDDEN)) + if ((cmd = vector_slot (cnode->cmd_vector, i)) != NULL) vty_out (vty, " %s%s", cmd->string, VTY_NEWLINE); return CMD_SUCCESS; |