8168471: Non ANSI C declaration of block local variable in NetworkInterface_winXP.c
Reviewed-by: chegar
This commit is contained in:
parent
cd99155eb8
commit
09dd43b407
@ -627,11 +627,12 @@ static jobject createNetworkInterfaceXP(JNIEnv *env, netif *ifs)
|
|||||||
(*env)->SetObjectArrayElement(env, bindsArr, bind_index++, ibObj);
|
(*env)->SetObjectArrayElement(env, bindsArr, bind_index++, ibObj);
|
||||||
} else /* AF_INET6 */ {
|
} else /* AF_INET6 */ {
|
||||||
int scope;
|
int scope;
|
||||||
|
jboolean ret;
|
||||||
iaObj = (*env)->NewObject(env, ia6_class, ia6_ctrID);
|
iaObj = (*env)->NewObject(env, ia6_class, ia6_ctrID);
|
||||||
if (iaObj == NULL) {
|
if (iaObj == NULL) {
|
||||||
return 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) {
|
if (ret == JNI_FALSE) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user