summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2018-08-30 04:48:30 +0530
committerAndreas Schneider <asn@samba.org>2018-10-23 15:39:04 +0200
commit0983cd2fd88cf580f60fe0cf6b0ddcdfcd18d249 (patch)
tree0a089c9815d2dfc152924c4303b97b9c5c63407e /example
parent3d340c30517b90853318fe60ec239bf2bf789931 (diff)
downloadsocket_wrapper-0983cd2fd88cf580f60fe0cf6b0ddcdfcd18d249.tar.gz
socket_wrapper-0983cd2fd88cf580f60fe0cf6b0ddcdfcd18d249.tar.xz
socket_wrapper-0983cd2fd88cf580f60fe0cf6b0ddcdfcd18d249.zip
tests: Avoid -Wcast-align warning
warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 2 to 4 [-Wcast-align] struct sockaddr_in *sinp = (struct sockaddr_in *)to; ^~~~~~~~~~~~~~~~~~~~~~~~ Above warning can be avoided by making use of sockaddr_in available within torture_address from the caller of echo_udp_recv_from_to(). Following that sa_socklen from torture_address can be used instead of passing sa_socklen explicitly to echo_udp_recv_from_to(). Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions