diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 21:03:52 +0100 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-05-25 20:38:32 -0400 |
| commit | 59e96cda41eaa263fe445566a484bc979c36be18 (patch) | |
| tree | 67258150bf50b6a4c9f61d22368e0f4b27e7856d /pimd/pim_igmpv3.c | |
| parent | 469351b349831196b3d4ac7fbfdf276b5581499c (diff) | |
pimd: cast to sockaddr_in to sockaddr
While glibc seems to have something in the system headers that prevents
this from triggering a warning, FreeBSD doesn't. Fix the warning.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_igmpv3.c')
| -rw-r--r-- | pimd/pim_igmpv3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index 3baddbfae1..3657f2f946 100644 --- a/pimd/pim_igmpv3.c +++ b/pimd/pim_igmpv3.c @@ -1680,7 +1680,8 @@ void pim_igmp_send_membership_query(struct igmp_group *group, #endif tolen = sizeof(to); - sent = sendto(fd, query_buf, msg_size, MSG_DONTWAIT, &to, tolen); + 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]; |
