]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Remove #if 0 code from system
authorDonald Sharp <sharpd@nvidia.com>
Thu, 28 Jan 2021 18:37:53 +0000 (13:37 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 28 Jan 2021 18:37:53 +0000 (13:37 -0500)
Old dead code.
Like a log
jamming your build system

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_hello.c
pimd/test_igmpv3_join.c

index e50504ec10e1cc0fe3335bb04fdb8a4868d8ef88..6f5c4174e277827d10788cd9615a6539580ba79d 100644 (file)
@@ -95,22 +95,6 @@ static void tlv_trace_uint32_hex(const char *label, const char *tlv_name,
        }
 }
 
-#if 0
-static void tlv_trace(const char *label, const char *tlv_name,
-                     const char *ifname, struct in_addr src_addr,
-                     int isset)
-{
-  if (isset) {
-    char src_str[INET_ADDRSTRLEN];
-    pim_inet4_dump("<src?>", src_addr, src_str, sizeof(src_str));
-    zlog_debug("%s: PIM hello option from %s on interface %s: %s",
-              label,
-              src_str, ifname,
-              tlv_name);
-  }
-}
-#endif
-
 static void tlv_trace_list(const char *label, const char *tlv_name,
                           const char *ifname, struct in_addr src_addr,
                           int isset, struct list *addr_list)
index bf44f3c94a47949f745cc1152f3598613a87b3ae..3c26517e8880db35251d2566971566891fc08cf0 100644 (file)
@@ -54,11 +54,6 @@ static int iface_solve_index(const char *ifname)
        }
 
        for (i = 0; ini[i].if_index; ++i) {
-#if 0
-    fprintf(stderr,
-           "%s: interface=%s matching against local ifname=%s ifindex=%d\n",
-           prog_name, ifname, ini[i].if_name, ini[i].if_index);
-#endif
                if (!strcmp(ini[i].if_name, ifname)) {
                        ifindex = ini[i].if_index;
                        break;