diff options
author | paul <paul> | 2003-04-18 23:55:29 +0000 |
---|---|---|
committer | paul <paul> | 2003-04-18 23:55:29 +0000 |
commit | dfc0d9ba97c82cf47e34793bd7d6a89815940a36 (patch) | |
tree | 0f0896feb933d226ef0d7f0f5e941979d36e040f /vtysh | |
parent | f645789b7a97ab75efbd68a11e2e0f7378e57639 (diff) |
Fix up vtysh.c compile warnings
(following from initial patches by Amir & Sergey Vyshnevetskiy ([zebra
18689])
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 77574ccf..78830055 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -695,7 +695,7 @@ vtysh_rl_describe () int complete_status; char * -command_generator (char *text, int state) +command_generator (const char *text, int state) { vector vline; static char **matched = NULL; @@ -730,7 +730,7 @@ new_completion (char *text, int start, int end) { char **matches; - matches = completion_matches (text, command_generator); + matches = rl_completion_matches (text, command_generator); if (matches) { @@ -1348,7 +1348,7 @@ DEFUN (vtysh_write_memory, "Write running configuration to memory, network, or terminal\n" "Write configuration to the file (same as write file)\n") { - int ret; + int ret = CMD_SUCCESS; char line[] = "write memory\n"; /* if integrated Zebra.conf explicitely set */ @@ -1371,7 +1371,7 @@ DEFUN (vtysh_write_memory, fprintf (stdout,"[OK]\n"); - return CMD_SUCCESS; + return ret; } ALIAS (vtysh_write_memory, @@ -1686,10 +1686,10 @@ vtysh_connect_all() /* To disable readline's filename completion */ -int -vtysh_completion_entry_function (int ignore, int invoking_key) +char * +vtysh_completion_entry_function (const char *ignore, int invoking_key) { - return 0; + return NULL; } void |