Blame SOURCES/autofs-5.0.7-modules-replicated-use-sin6.addr-s6_addr32.patch

304803
autofs-5.0.7 -  modules/replicated.c: use sin6_addr.s6_addr32
304803
304803
From: Chris Packham <chris.packham@alliedtelesis.co.nz>
304803
304803
The exported in6.h kernel header provides a convenience macro s6_addr32
304803
for accessing the 32bit words of an ipv6 address. Use this instead of
304803
__in6_u.__u6_addr32.
304803
---
304803
304803
 CHANGELOG            |    1 +
304803
 modules/replicated.c |    2 +-
304803
 2 files changed, 2 insertions(+), 1 deletions(-)
304803
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index ed17163..4eaa9f9 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -26,6 +26,7 @@
304803
 - use numeric protocol ids instead of protoent structs.
304803
 - lib/defaults.c: use WITH_LDAP conditional around LDAP types.
304803
 - make yellow pages support optional.
304803
+- modules/replicated.c: use sin6_addr.s6_addr32.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/modules/replicated.c b/modules/replicated.c
304803
index dbd5513..26f64b8 100644
304803
--- a/modules/replicated.c
304803
+++ b/modules/replicated.c
304803
@@ -1146,7 +1146,7 @@ try_name:
304803
 				rr4++;
304803
 		} else if (this->ai_family == AF_INET6) {
304803
 			struct sockaddr_in6 *addr = (struct sockaddr_in6 *) this->ai_addr;
304803
-			if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.__in6_u.__u6_addr32))
304803
+			if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.s6_addr32))
304803
 				rr6++;
304803
 		}
304803
 		this = this->ai_next;