[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-dev
Subject:    [quagga-dev 11313] [PATCH] vtysh: fix build against readline 6.3
From:       David Lamparter <equinox () opensourcerouting ! org>
Date:       2014-05-27 18:01:59
Message-ID: 1401213719-580575-1-git-send-email-equinox () opensourcerouting ! org
[Download RAW message or body]

From: Sébastien Luttringer <seblu@seblu.net>

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>
---

Build regression fix from ArchLinux.  Fixes build on Ubuntu 14.04 LTS as
well.  Thanks to Martin Winter for pointering me to the forum thread.

 vtysh/vtysh.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 34c3bd6..89b9b25 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 *
-- 
1.8.5.5


_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic