Fix various strict aliasing problems with sockaddr
commitd8fe926ba4e799f7b1bd6b0b4464920443bedea9
authorPhilip Withnall <withnall@endlessm.com>
Thu, 21 Dec 2017 17:46:24 +0000 (21 17:46 +0000)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 8 Jan 2018 11:50:26 +0000 (8 11:50 +0000)
tree2ef1dea932eab7c933cb12d4ad8ffd50f811de7c
parent8f7cc8cb75b62393842603eef1bb93001a581202
Fix various strict aliasing problems with sockaddr

Fix various strict aliasing problems caused by casting between (struct
sockaddr *) and (struct sockaddr_storage *): the correct code here is to
keep the two in a union.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791622
gio/gnativesocketaddress.c
gio/gsocket.c
glib/gmessages.c