mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
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:
parent
c3cc4f8bad
commit
530d4463ba
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user