summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-01-02 18:51:01 +0000
committerhasso <hasso>2005-01-02 18:51:01 +0000
commitcba8a60639aa83659ce551e91266dcee8408fc23 (patch)
tree4b1b9a943481b46d07889350f5842e9af726d38e /lib/command.c
parentcee66491371403453dc1c2a2424683976d22e640 (diff)
Reverting some int -> unsigned int fixes in command.c for now. Fixes crash
described in [quagga-dev 2292].
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/command.c b/lib/command.c
index 2766c414..b1260af9 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1,5 +1,5 @@
/*
- $Id: command.c,v 1.30 2004/12/17 23:16:33 ajs Exp $
+ $Id: command.c,v 1.31 2005/01/02 18:51:01 hasso Exp $
Command interpreter routine for virtual terminal [aka TeletYpe]
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
@@ -1565,12 +1565,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;
@@ -1761,12 +1761,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;