summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-07 21:40:25 +0000
committerhasso <hasso>2004-10-07 21:40:25 +0000
commitdda095222f30c8bee6edc46f2c1babb66f9e699d (patch)
tree25b33dc3ed6fc992f5cf8b8e055da1ddc8d2b747 /vtysh/vtysh_config.c
parentea8e9d972e8775f3e1c4e03fbacb18a42e8c4177 (diff)
Vtysh compiles cleanly as well.
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 26879186..f068b1fd 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -83,7 +83,7 @@ config_del (struct config* config)
}
struct config *
-config_get (int index, char *line)
+config_get (int index, const char *line)
{
struct config *config;
struct config *config_loop;
@@ -122,13 +122,13 @@ config_get (int index, char *line)
}
void
-config_add_line (struct list *config, char *line)
+config_add_line (struct list *config, const char *line)
{
listnode_add (config, XSTRDUP (MTYPE_VTYSH_CONFIG_LINE, line));
}
void
-config_add_line_uniq (struct list *config, char *line)
+config_add_line_uniq (struct list *config, const char *line)
{
struct listnode *nn;
char *pnt;
@@ -142,7 +142,7 @@ config_add_line_uniq (struct list *config, char *line)
}
void
-vtysh_config_parse_line (char *line)
+vtysh_config_parse_line (const char *line)
{
char c;
static struct config *config = NULL;
@@ -294,7 +294,7 @@ vtysh_config_dump (FILE *fp)
struct config *config;
struct list *master;
char *line;
- int i;
+ unsigned int i;
LIST_LOOP (config_top, line, nn)
{
@@ -403,7 +403,7 @@ vtysh_read_config (char *config_default_dir)
void
vtysh_config_write ()
{
- char *line;
+ char line[81];
extern struct host host;
if (host.name)