]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't use private struct member names of in6_addr
authorMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 2 Nov 2009 14:45:05 +0000 (15:45 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 2 Nov 2009 14:45:05 +0000 (15:45 +0100)
__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.

src/util/network.c

index 674e7685aaf7af710abd232fd59191be093dd008..d67340a6f5f35e4ac4fcf64e4d1b7201d7421d5a 100644 (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]);