summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-07-20 17:24:48 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-07-21 13:29:26 +0200
commit4fbeeabc2bae75c837538b6a64861f8dab229c95 (patch)
tree29808418437c638ceb0ad97cbd3401c7f1ada2bd /pimd
parentpimd: Convert usage of pim_addr_dump to %pFXh (diff)
downloadfrr-4fbeeabc2bae75c837538b6a64861f8dab229c95.tar.xz
frr-4fbeeabc2bae75c837538b6a64861f8dab229c95.zip
pimd: Remove pim_addr_dump
This function is no longer used, remove it from the system. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_str.c30
-rw-r--r--pimd/pim_str.h2
-rw-r--r--pimd/subdir.am1
3 files changed, 0 insertions, 33 deletions
diff --git a/pimd/pim_str.c b/pimd/pim_str.c
deleted file mode 100644
index a0453769e..000000000
--- a/pimd/pim_str.c
+++ /dev/null
@@ -1,30 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * PIM for Quagga
- * Copyright (C) 2008 Everton da Silva Marques
- */
-
-#include <zebra.h>
-
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-
-#include "log.h"
-
-#include "pim_str.h"
-
-void pim_addr_dump(const char *onfail, struct prefix *p, char *buf,
- int buf_size)
-{
- int save_errno = errno;
-
- if (!inet_ntop(p->family, &p->u.prefix, buf, buf_size)) {
- zlog_warn("pim_addr_dump: inet_ntop(buf_size=%d): errno=%d: %s",
- buf_size, errno, safe_strerror(errno));
- if (onfail)
- snprintf(buf, buf_size, "%s", onfail);
- }
-
- errno = save_errno;
-}
diff --git a/pimd/pim_str.h b/pimd/pim_str.h
index cc27d23c0..029a9f49c 100644
--- a/pimd/pim_str.h
+++ b/pimd/pim_str.h
@@ -35,8 +35,6 @@
#define pim_inet4_dump prefix_mcast_inet4_dump
-void pim_addr_dump(const char *onfail, struct prefix *p, char *buf,
- int buf_size);
void pim_inet4_dump(const char *onfail, struct in_addr addr, char *buf,
int buf_size);
diff --git a/pimd/subdir.am b/pimd/subdir.am
index 9a7901ec3..1e787a352 100644
--- a/pimd/subdir.am
+++ b/pimd/subdir.am
@@ -43,7 +43,6 @@ pim_common = \
pimd/pim_ssm.c \
pimd/pim_ssmpingd.c \
pimd/pim_static.c \
- pimd/pim_str.c \
pimd/pim_tib.c \
pimd/pim_time.c \
pimd/pim_tlv.c \