]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: fix build against readline 6.3
authorSébastien Luttringer <seblu@seblu.net>
Tue, 27 May 2014 17:55:11 +0000 (19:55 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 27 May 2014 17:55:11 +0000 (19:55 +0200)
readline 6.3 removes some old deprecated funnily-named types.  This
updates vtysh to use the new types so it builds again.

Reported-by: Joel Teichroeb <klusark@archlinux.invalid>
References: https://bugs.archlinux.org/task/39495
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
vtysh/vtysh.c

index 34c3bd62a1247590e3dadfbe7a721b10aefb4fde..89b9b257ee78c6dd7950ae5563f5b6682a6fd488 100644 (file)
@@ -2212,9 +2212,9 @@ void
 vtysh_readline_init (void)
 {
   /* readline related settings. */
-  rl_bind_key ('?', (Function *) vtysh_rl_describe);
+  rl_bind_key ('?', (rl_command_func_t *) vtysh_rl_describe);
   rl_completion_entry_function = vtysh_completion_entry_function;
-  rl_attempted_completion_function = (CPPFunction *)new_completion;
+  rl_attempted_completion_function = (rl_completion_func_t *)new_completion;
 }
 
 char *