提交 530d4463 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

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.
上级 c3cc4f8b
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册