summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorSébastien Luttringer <seblu@seblu.net>2014-05-27 19:55:11 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-05-27 19:55:11 +0200
commit66d2ead7df2db9144605c973fcd80b88df33f81b (patch)
tree77ebf094c8084f2a22c9c00fb53a88df798301b6 /vtysh
parentzebra: raise the privileges before calling socket() (diff)
downloadfrr-66d2ead7df2db9144605c973fcd80b88df33f81b.tar.xz
frr-66d2ead7df2db9144605c973fcd80b88df33f81b.zip
vtysh: fix build against readline 6.3
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>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 34c3bd62a..89b9b257e 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -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 *