]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Remove unused zclient_debug variable
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 7 Dec 2016 19:05:46 +0000 (14:05 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:19 +0000 (20:26 -0500)
Remove code that sets the pim_zclient_debug variable
but is never used.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/Makefile.am
pimd/pim_main.c
pimd/pim_zlookup.c

index 6ce4f678a986fe01a31a3656b0a04c081118f0be..2bfe9c91ca96a5acac22facd6348b52df4ff3fba 100644 (file)
@@ -20,7 +20,6 @@
 # 330, Boston, MA 02111-1307, USA.
 
 # PIM_DEBUG_BYDEFAULT: Automatically enables all pimd "debug ..." commands
-# PIM_ZCLIENT_DEBUG: Support for internal ZEBRA client debugging
 # PIM_CHECK_RECV_IFINDEX_SANITY: Compare socket ifindex with recv ifindex
 # PIM_REPORT_RECV_IFINDEX_MISMATCH: Report sock/recv ifindex mismatch
 # PIM_ENFORCE_LOOPFREE_MFC: Refuse adding looping MFC entries
@@ -30,7 +29,6 @@ PIM_DEFS =
 #PIM_DEFS += -DPIM_DEBUG_BYDEFAULT
 #PIM_DEFS += -DPIM_CHECK_RECV_IFINDEX_SANITY
 #PIM_DEFS += -DPIM_REPORT_RECV_IFINDEX_MISMATCH
-PIM_DEFS += -DPIM_ZCLIENT_DEBUG
 PIM_DEFS += -DPIM_ENFORCE_LOOPFREE_MFC
 #PIM_DEFS += -DPIM_UNEXPECTED_KERNEL_UPCALL
 
index 39cab7fb97c9cd506152542331c99b32b8c45f6a..7fc9bc524e3d70a65e4bb5e5976837e604514a68 100644 (file)
 #include "pim_iface.h"
 #include "pim_rp.h"
 
-#ifdef PIM_ZCLIENT_DEBUG
-extern int zclient_debug;
-#endif
-
 extern struct host host;
 
 char config_default[] = SYSCONFDIR PIMD_DEFAULT_CONFIG;
@@ -109,15 +105,6 @@ Daemon which manages PIM.\n\n\
 -A, --vty_addr       Set vty's bind address\n\
 -P, --vty_port       Set vty's port number\n\
 -v, --version        Print program version\n\
-"
-
-#ifdef PIM_ZCLIENT_DEBUG
-"\
--Z, --debug_zclient  Enable zclient debugging\n\
-"
-#endif
-
-"\
 -h, --help           Display this help and exit\n\
 \n\
 Report bugs to %s\n", progname, PACKAGE_BUGREPORT);
@@ -182,11 +169,6 @@ int main(int argc, char** argv, char** envp) {
       print_version(QUAGGA_PROGNAME);
       exit (0);
       break;
-#ifdef PIM_ZCLIENT_DEBUG
-    case 'Z':
-      zclient_debug = 1;
-      break;
-#endif
     case 'h':
       usage (0);
       break;
@@ -263,11 +245,6 @@ int main(int argc, char** argv, char** envp) {
   PIM_DO_DEBUG_ZEBRA;
 #endif
 
-#ifdef PIM_ZCLIENT_DEBUG
-  zlog_notice("PIM_ZCLIENT_DEBUG: zclient debugging is supported, mode is %s (see option -Z)",
-             zclient_debug ? "ON" : "OFF");
-#endif
-
 #ifdef PIM_CHECK_RECV_IFINDEX_SANITY
   zlog_notice("PIM_CHECK_RECV_IFINDEX_SANITY: will match sock/recv ifindex");
 #ifdef PIM_REPORT_RECV_IFINDEX_MISMATCH
index 1ed724d7dec693325bfa4e13d0d9389d4e691c9f..f3193b28dbaf94ff4fda0674c7b35635057379f9 100644 (file)
@@ -38,8 +38,6 @@
 #include "pim_oil.h"
 #include "pim_zlookup.h"
 
-extern int zclient_debug;
-
 static struct zclient *zlookup = NULL;
 
 static void zclient_lookup_sched(struct zclient *zlookup, int delay);