diff --git a/pimd/pim_str.c b/pimd/pim_str.c deleted file mode 100644 index a0453769e9..0000000000 --- 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 - -#include -#include -#include - -#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 cc27d23c0e..029a9f49ce 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 9a7901ec3f..1e787a3525 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 \