From aec8f4644ff559b81559624efa5c0965de6bba04 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 19 Jun 2009 07:45:45 +0000 Subject: [PATCH] strict aliasing warning in config_file code. git-svn-id: file:///svn/unbound/trunk@1676 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + util/config_file.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index ea2ce6243..6fdcd1c3c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 19 June 2009: Wouter - Fixup strict aliasing warning in iter priv code. + and config_file code. - iana portlist updated. 18 June 2009: Wouter diff --git a/util/config_file.c b/util/config_file.c index 657c353fc..3e8ab8ed9 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -1034,7 +1034,7 @@ char* cfg_ptr_reverse(char* str) * IPv6: (h.){32}.ip6.arpa. */ if(addr_is_ip6(&addr, addrlen)) { - struct in6_addr* ad = &((struct sockaddr_in6*)&addr)->sin6_addr; + void* ad = &((struct sockaddr_in6*)&addr)->sin6_addr; const char* hex = "0123456789abcdef"; char *p = buf; int i;