summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmpv3.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-14 15:05:34 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:01 +0100
commit3d7765d7417b0552fb4d6356742dc68428bf3d4b (patch)
tree05cfa22a655816b861854be3a6ae20983bcf8c6b /pimd/pim_igmpv3.c
parentpimd: Create pim_encode_addr_group (diff)
downloadfrr-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_igmpv3.c')
-rw-r--r--pimd/pim_igmpv3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c
index 7300e6c6b..05d2699ff 100644
--- a/pimd/pim_igmpv3.c
+++ b/pimd/pim_igmpv3.c
@@ -1710,7 +1710,6 @@ void pim_igmp_send_membership_query(struct igmp_group *group,
sent = sendto(fd, query_buf, msg_size, MSG_DONTWAIT,
(struct sockaddr *)&to, tolen);
if (sent != (ssize_t) msg_size) {
- int e = errno;
char dst_str[100];
char group_str[100];
pim_inet4_dump("<dst?>", dst_addr, dst_str, sizeof(dst_str));
@@ -1719,7 +1718,7 @@ void pim_igmp_send_membership_query(struct igmp_group *group,
zlog_warn("%s: sendto() failure to %s on %s: group=%s msg_size=%zd: errno=%d: %s",
__PRETTY_FUNCTION__,
dst_str, ifname, group_str, msg_size,
- e, safe_strerror(e));
+ errno, safe_strerror(errno));
}
else {
zlog_warn("%s: sendto() partial to %s on %s: group=%s msg_size=%zd: sent=%zd",