summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-29 13:26:38 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-29 13:26:38 +0200
commitcb1119666a3a4273fa53743837b2e13f6730bc10 (patch)
treef6f0880e2cc4fd3b4c99089d6005d23a378f4c53 /tests
parentb0d8a37c7b785fc34aef8f4181ae70d0e343ec30 (diff)
downloadwolfbones-cb1119666a3a4273fa53743837b2e13f6730bc10.tar.gz
wolfbones-cb1119666a3a4273fa53743837b2e13f6730bc10.tar.bz2
getaddrinfo on Solaris 8, also fixed a 64-bit alignment cast issue around inetaddr
Diffstat (limited to 'tests')
-rw-r--r--tests/port/test_getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/port/test_getaddrinfo.c b/tests/port/test_getaddrinfo.c
index e12c303..df2be22 100644
--- a/tests/port/test_getaddrinfo.c
+++ b/tests/port/test_getaddrinfo.c
@@ -39,12 +39,12 @@ int main( void ) {
memset( s, 0, 100 );
switch( res->ai_family ) {
case AF_INET:
- addr_ipv4 = (const struct sockaddr_in *)res->ai_addr;
+ addr_ipv4 = (const struct sockaddr_in *)((void *)res->ai_addr);
inet_ntop( res->ai_family, &addr_ipv4->sin_addr, s, 100 );
break;
case AF_INET6:
- addr_ipv6 = (const struct sockaddr_in6 *)res->ai_addr;
+ addr_ipv6 = (const struct sockaddr_in6 *)((void *)res->ai_addr);
inet_ntop( res->ai_family, &addr_ipv6->sin6_addr, s, 100 );
break;
}