8132505: Signature of Java_sun_nio_ch_Net_socket0 should return jint not int
authorbpb
Fri, 31 Jul 2015 07:04:48 -0700
changeset 32006 97c6167e698a
parent 32005 2c716d9dac38
child 32007 d8dbfb03a3e7
8132505: Signature of Java_sun_nio_ch_Net_socket0 should return jint not int Summary: Change return type of Java_sun_nio_ch_Net_socket0 from int to jint Reviewed-by: alanb
jdk/src/java.base/unix/native/libnio/ch/Net.c
--- a/jdk/src/java.base/unix/native/libnio/ch/Net.c	Fri Jul 31 14:29:25 2015 +0100
+++ b/jdk/src/java.base/unix/native/libnio/ch/Net.c	Fri Jul 31 07:04:48 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -186,7 +186,7 @@
 #endif
 }
 
-JNIEXPORT int JNICALL
+JNIEXPORT jint JNICALL
 Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6,
                             jboolean stream, jboolean reuse, jboolean ignored)
 {