]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: fix CLI copypasta mixups
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 29 Nov 2016 12:59:25 +0000 (13:59 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 29 Nov 2016 13:15:05 +0000 (14:15 +0100)
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 <equinox@opensourcerouting.org>
ospfd/ospf_vty.c
vtysh/vtysh.c

index 4f5204be7748a06a881a74cf53e109c6d012e79f..d83684028399ade11796c8dc87ad9af3cf7b525a 100644 (file)
@@ -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,
index 6a14aab639afd752b0834824681108e35378061c..b622fa97432b66d9ec23fa32e28c04bbbb9d2d70 100644 (file)
@@ -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,