]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix strict-aliasing warnings in sk_tcp_peer_info.
authorColin Watson <cjwatson@debian.org>
Thu, 28 Jan 2016 21:22:07 +0000 (21:22 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 29 Feb 2016 19:59:36 +0000 (19:59 +0000)
commiteb74369b24584e12fdd251cbbf2af17f4c543550
treefaf0afc447b3dffb0c3da220d8cb48ea32870fcc
parente71ec6bf9fc5094171faecb70f597cf60653b488
Fix strict-aliasing warnings in sk_tcp_peer_info.

GCC 6 emits strict-aliasing warnings here, so use the existing
sockaddr_union arrangements to avoid those.  As a prerequisite for being
able to express sk_tcp_peer_info in terms of sockaddr_union, I fixed up
the union elements to be a bit less odd in the NO_IPV6 case.

(cherry picked from commit c026b48c537250ac03573845ff9da6fd9f45776d)
unix/uxnet.c