From 0c921aa3129a5b1b0ff9c7fae2c0b2ca6bde7510 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 29 Aug 2014 10:33:16 +0200 Subject: tests: Fix type punning warnings. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- tests/torture.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/torture.h') 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 +#include +#include + #include #include #include @@ -44,6 +48,19 @@ #include #include +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; -- cgit