diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-26 02:47:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-26 02:47:52 +0000 |
commit | d2a72bbc8726e3089f429b676891fec5c535020a (patch) | |
tree | 9980364ba6cf92b11a8841ba7f6e3a578f7e6bb3 /capture-pcap-util.c | |
parent | cfca66f6e1f151f2a9c481c2d0a05fc6d23b6f5c (diff) | |
download | wireshark-d2a72bbc8726e3089f429b676891fec5c535020a.tar.gz |
Cast away warnings about "struct sockaddr" -> "struct sockaddr_XXX"
casts that are actually safe.
svn path=/trunk/; revision=36861
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r-- | capture-pcap-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c index 32f8fc66f5..3b1ebbf8f9 100644 --- a/capture-pcap-util.c +++ b/capture-pcap-util.c @@ -82,7 +82,7 @@ if_info_add_address(if_info_t *if_info, struct sockaddr *addr) switch (addr->sa_family) { case AF_INET: - ai = (struct sockaddr_in *)addr; + ai = (struct sockaddr_in *)(void *)addr; if_addr = (if_addr_t *)g_malloc(sizeof(*if_addr)); if_addr->ifat_type = IF_AT_IPv4; if_addr->addr.ip4_addr = @@ -92,7 +92,7 @@ if_info_add_address(if_info_t *if_info, struct sockaddr *addr) #ifdef INET6 case AF_INET6: - ai6 = (struct sockaddr_in6 *)addr; + ai6 = (struct sockaddr_in6 *)(void *)addr; if_addr = (if_addr_t *)g_malloc(sizeof(*if_addr)); if_addr->ifat_type = IF_AT_IPv6; memcpy((void *)&if_addr->addr.ip6_addr, |