8168471: Non ANSI C declaration of block local variable in NetworkInterface_winXP.c
authorsimonis
Fri, 21 Oct 2016 14:57:50 +0200
changeset 41602 56443be12e8e
parent 41601 d04193dcb0f7
child 41604 95f4b6dbc5c9
8168471: Non ANSI C declaration of block local variable in NetworkInterface_winXP.c Reviewed-by: chegar
jdk/src/java.base/windows/native/libnet/NetworkInterface_winXP.c
--- 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;
             }