changeset 15887:4b87b12bd992

8168471: Non ANSI C declaration of block local variable in NetworkInterface_winXP.c Reviewed-by: chegar
author simonis
date Fri, 21 Oct 2016 14:57:50 +0200
parents 008918f18c5f
children 0fb9ba19a63a
files src/java.base/windows/native/libnet/NetworkInterface_winXP.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/windows/native/libnet/NetworkInterface_winXP.c	Fri Oct 21 12:31:50 2016 +0100
+++ b/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;
             }