strict aliasing warning in config_file code.

git-svn-id: file:///svn/unbound/trunk@1676 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-06-19 07:45:45 +00:00
parent 6f745bc49e
commit aec8f4644f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;