diff options
author | Andreas Schneider <asn@samba.org> | 2014-08-29 10:33:16 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-09-01 09:48:32 +0200 |
commit | 0c921aa3129a5b1b0ff9c7fae2c0b2ca6bde7510 (patch) | |
tree | 3f597d91648f3e2b71ae58fc13a6cce5e3763c9c /tests/torture.h | |
parent | fa6fee05250c844eb0e00ee47b87ea2e5cd383bf (diff) | |
download | socket_wrapper-0c921aa3129a5b1b0ff9c7fae2c0b2ca6bde7510.tar.gz socket_wrapper-0c921aa3129a5b1b0ff9c7fae2c0b2ca6bde7510.tar.xz socket_wrapper-0c921aa3129a5b1b0ff9c7fae2c0b2ca6bde7510.zip |
tests: Fix type punning warnings.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'tests/torture.h')
-rw-r--r-- | tests/torture.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h index ffc3567..921195d 100644 --- a/tests/torture.h +++ b/tests/torture.h @@ -36,6 +36,10 @@ #include "config.h" +#include <sys/socket.h> +#include <sys/un.h> +#include <netinet/in.h> + #include <stdarg.h> #include <stddef.h> #include <setjmp.h> @@ -44,6 +48,19 @@ #include <stdint.h> #include <string.h> +struct torture_address { + socklen_t sa_socklen; + union { + struct sockaddr s; + struct sockaddr_in in; +#ifdef HAVE_IPV6 + struct sockaddr_in6 in6; +#endif + struct sockaddr_un un; + struct sockaddr_storage ss; + } sa; +}; + struct torture_state { char *socket_dir; char *pcap_file; |