diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-07-20 11:24:48 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-07-21 07:29:26 -0400 |
| commit | 4fbeeabc2bae75c837538b6a64861f8dab229c95 (patch) | |
| tree | 29808418437c638ceb0ad97cbd3401c7f1ada2bd /pimd/pim_str.c | |
| parent | bbb83251c120ae5518063b8e39d8fe6397a23da1 (diff) | |
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/pim_str.c')
| -rw-r--r-- | pimd/pim_str.c | 30 |
1 files changed, 0 insertions, 30 deletions
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 <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; -} |
