Don't use private struct member names of in6_addr

__in6_u.__u6_addr16 is the private name for this struct member,
s6_addr16 is the public one
* src/util/network.c: dont use the private field, but the public one.
This commit is contained in:
Matthias Bolte 2009-11-02 15:45:05 +01:00 committed by Daniel Veillard
parent c3cc4f8bad
commit 530d4463ba

View File

@ -47,7 +47,7 @@ static int getIPv6Addr(virSocketAddrPtr addr, virIPv6AddrPtr tab) {
if ((addr == NULL) || (tab == NULL) || (addr->stor.ss_family != AF_INET6))
return(-1);
val = (virIPv6AddrPtr) &(addr->inet6.sin6_addr.__in6_u.__u6_addr16);
val = (virIPv6AddrPtr) &(addr->inet6.sin6_addr.s6_addr16);
for (i = 0;i < 8;i++) {
(*tab)[i] = ntohs((*val)[i]);