8168471: Non ANSI C declaration of block local variable in NetworkInterface_winXP.c
Reviewed-by: chegar
--- a/jdk/src/java.base/windows/native/libnet/NetworkInterface_winXP.c Fri Oct 21 12:31:50 2016 +0100
+++ b/jdk/src/java.base/windows/native/libnet/NetworkInterface_winXP.c Fri Oct 21 14:57:50 2016 +0200
@@ -627,11 +627,12 @@
(*env)->SetObjectArrayElement(env, bindsArr, bind_index++, ibObj);
} else /* AF_INET6 */ {
int scope;
+ jboolean ret;
iaObj = (*env)->NewObject(env, ia6_class, ia6_ctrID);
if (iaObj == NULL) {
return NULL;
}
- jboolean ret = setInet6Address_ipaddress(env, iaObj, (jbyte *)&(addrs->addr.sa6.sin6_addr.s6_addr));
+ ret = setInet6Address_ipaddress(env, iaObj, (jbyte *)&(addrs->addr.sa6.sin6_addr.s6_addr));
if (ret == JNI_FALSE) {
return NULL;
}