From dfc0d9ba97c82cf47e34793bd7d6a89815940a36 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 18 Apr 2003 23:55:29 +0000 Subject: Fix up vtysh.c compile warnings (following from initial patches by Amir & Sergey Vyshnevetskiy ([zebra 18689]) --- vtysh/vtysh.c | 14 +++++++------- 1 file 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 -- cgit v1.2.1