]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: make clippy usage more consistent
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 4 Dec 2017 21:32:20 +0000 (19:32 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 4 Dec 2017 21:46:38 +0000 (19:46 -0200)
Fixes #1511.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_rpki.c
bgpd/bgp_vty.c
doc/cli.md
ldpd/subdir.am
lib/plist.c
ospfd/ospf_vty.c
sharpd/sharp_vty.c

index 1a42478513f853ff4d22defd182dacd4d98c7cf2..19d4769cd3fef1371c00310e0a720595735c39c3 100644 (file)
@@ -52,7 +52,9 @@
 #include "libfrr.h"
 #include "version.h"
 
-#include "bgp_rpki_clippy.c"
+#ifndef VTYSH_EXTRACT_PL
+#include "bgpd/bgp_rpki_clippy.c"
+#endif
 
 DEFINE_MTYPE_STATIC(BGPD, BGP_RPKI_CACHE, "BGP RPKI Cache server")
 DEFINE_MTYPE_STATIC(BGPD, BGP_RPKI_CACHE_GROUP, "BGP RPKI Cache server group")
index a6738107381bf62b187a57ceab24e724776cf464..5515643ed1ae185fca4696c66df79ffe8937b35f 100644 (file)
@@ -721,7 +721,7 @@ static void bgp_clear_star_soft_out(struct vty *vty, const char *name)
 
 
 #ifndef VTYSH_EXTRACT_PL
-#include "bgp_vty_clippy.c"
+#include "bgpd/bgp_vty_clippy.c"
 #endif
 
 /* BGP global configuration.  */
index 253617e9b5271ebb1dc2652e27553829f15166c6..723237ebb8c32c78c996fd024e235af6270bd161 100644 (file)
@@ -210,7 +210,7 @@ all DEFPY statements**:
 
 ...
 
-#include "filename_clippy.c"
+#include "daemon/filename_clippy.c"
 
 DEFPY(...)
 DEFPY(...)
index db71cee618bd8434cf2ddeb402b39fa3582f9894..2d87be0cda80e7d92279cc76df48f1c3d23e98ec 100644 (file)
@@ -38,6 +38,7 @@ ldpd_libldp_a_SOURCES = \
        ldpd/util.c \
        # end
 
+ldpd/ldp_vty_cmds_clippy.c: $(CLIPPY_DEPS)
 ldpd/ldp_vty_cmds.$(OBJEXT): ldpd/ldp_vty_cmds_clippy.c
 
 noinst_HEADERS += \
index 3c491d6a3b43774383f9599dc7e2c8f054c9fe12..a95749cf0ed7fc616472d2110b768d58463482f8 100644 (file)
@@ -1321,7 +1321,7 @@ static int vty_clear_prefix_list(struct vty *vty, afi_t afi, const char *name,
 }
 
 #ifndef VTYSH_EXTRACT_PL
-#include "plist_clippy.c"
+#include "lib/plist_clippy.c"
 #endif
 
 DEFPY (ip_prefix_list,
index f1848f1eaff99900e1df4687f5e43f2b00ac0430..3a66481132aec0c0421da56fb9694ee8307d378c 100644 (file)
@@ -187,7 +187,7 @@ static void ospf_show_vrf_name(struct ospf *ospf, struct vty *vty,
 }
 
 #ifndef VTYSH_EXTRACT_PL
-#include "ospf_vty_clippy.c"
+#include "ospfd/ospf_vty_clippy.c"
 #endif
 
 DEFUN_NOSH (router_ospf,
index 47bb37ce929f093d9077e832c9b03fe0d5793d3b..a35157faa19ef82dce174acb2a15b7b9ddeaa8f4 100644 (file)
@@ -29,7 +29,9 @@
 
 #include "sharpd/sharp_zebra.h"
 #include "sharpd/sharp_vty.h"
+#ifndef VTYSH_EXTRACT_PL
 #include "sharpd/sharp_vty_clippy.c"
+#endif
 
 extern uint32_t total_routes;
 extern uint32_t installed_routes;