]> granicus.if.org Git - transmission/commit
fix net.c 'increases required alignment' warning
authorCharles Kerr <ckerr@github.com>
Sat, 26 Oct 2019 21:21:06 +0000 (16:21 -0500)
committerCharles Kerr <ckerr@github.com>
Sat, 26 Oct 2019 21:21:06 +0000 (16:21 -0500)
commitcad4abdff166b17ea0988170ee93e6b59e085e8c
tree1b9ddb4cb7cc6ebedf3054898081ab7bedd8e201
parent71a1412476c188853988e730ec50acc0ca49910f
fix net.c 'increases required alignment' warning

The code passes in a `struct sockaddr_storage*` which is a padded struct
large enough for the necessary alignment. Unfortunately it was recast as
a `struct sockaddr*` which has less padding and a smaller alignment. The
warning occrred because of these differing alignments.
libtransmission/net.c