summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorpaul <paul>2005-03-09 13:39:26 +0000
committerpaul <paul>2005-03-09 13:39:26 +0000
commit9e92eeab6cc40bc65ed9b1b7950e161fd1434d48 (patch)
tree40a277021d7dee4910cc9aa982680ac137f6e0dd /lib/command.c
parent060d438cb1be51d2f7fb7954a8b7b1cd491f555f (diff)
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.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/command.c b/lib/command.c
index cf7f46b9..627be328 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1,6 +1,6 @@
/*
- $Id: command.c,v 1.41 2005/03/08 16:00:12 paul Exp $
-
+ $Id: command.c,v 1.42 2005/03/09 13:39:26 paul Exp $
+
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;