diff options
author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-14 15:05:34 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-22 02:26:01 +0100 |
commit | 3d7765d7417b0552fb4d6356742dc68428bf3d4b (patch) | |
tree | 05cfa22a655816b861854be3a6ae20983bcf8c6b /pimd/pim_str.c | |
parent | pimd: Create pim_encode_addr_group (diff) | |
download | frr-3d7765d7417b0552fb4d6356742dc68428bf3d4b.tar.xz frr-3d7765d7417b0552fb4d6356742dc68428bf3d4b.zip |
pimd: Fixup some dead code
Remove some dead code.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_str.c')
-rw-r--r-- | pimd/pim_str.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_str.c b/pimd/pim_str.c index 3a8353cd8..ee9c74fa3 100644 --- a/pimd/pim_str.c +++ b/pimd/pim_str.c @@ -35,9 +35,8 @@ void pim_inet4_dump(const char *onfail, struct in_addr addr, char *buf, int buf_ int save_errno = errno; if (!inet_ntop(AF_INET, &addr, buf, buf_size)) { - int e = errno; zlog_warn("pim_inet4_dump: inet_ntop(AF_INET,buf_size=%d): errno=%d: %s", - buf_size, e, safe_strerror(e)); + buf_size, errno, safe_strerror(errno)); if (onfail) snprintf(buf, buf_size, "%s", onfail); } |