From: David Lamparter Date: Tue, 29 Nov 2016 12:59:25 +0000 (+0100) Subject: *: fix CLI copypasta mixups X-Git-Tag: frr-3.0-branchpoint~137 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=030204c7b0631fd77b5a62498a59417c61f64bf3;p=mirror%2Ffrr.git *: fix CLI copypasta mixups Nice clang catch: ospfd/ospf_vty.c:6710:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion] (same in vtysh/vtysh.c) Signed-off-by: David Lamparter --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 4f5204be77..d836840283 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -6708,7 +6708,7 @@ DEFUN_HIDDEN (no_ospf_hello_interval, "Seconds\n" "Address of interface\n") { - return no_ospf_hello_interval (self, vty, argc, argv); + return no_ip_ospf_hello_interval (self, vty, argc, argv); } DEFUN (ip_ospf_network, diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 6a14aab639..b622fa9743 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1812,7 +1812,7 @@ DEFUNSH (VTYSH_NS, "quit", "Exit current mode and down to previous mode\n") { - return vtysh_quit_ns(self, vty, argc, argv); + return vtysh_exit_ns(self, vty, argc, argv); } DEFUNSH (VTYSH_VRF,