freebsd-dev/sbin/ping
Dimitry Andric a94c074d6a Fix clang 4.0.0 warnings about taking the address of a packed member of
struct ip in ping(8):

sbin/ping/ping.c:1684:53: error: taking address of packed member
'ip_src' of class or structure 'ip' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        (void)printf(" %s ", inet_ntoa(*(struct in_addr *)&ip->ip_src.s_addr));
                                                           ^~~~~~~~~~~~~~~~~
sbin/ping/ping.c:1685:53: error: taking address of packed member
'ip_dst' of class or structure 'ip' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        (void)printf(" %s ", inet_ntoa(*(struct in_addr *)&ip->ip_dst.s_addr));
                                                           ^~~~~~~~~~~~~~~~~

MFC after:	3 days
2017-01-06 18:41:28 +00:00
..
Makefile MFH 2016-03-02 16:14:46 +00:00
Makefile.depend Update dependencies. 2016-02-26 22:14:15 +00:00
ping.8 o Xr icmp(4). 2016-03-11 15:29:00 +00:00
ping.c Fix clang 4.0.0 warnings about taking the address of a packed member of 2017-01-06 18:41:28 +00:00