changeset 12492:192ea43518d2

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
author bpb
date Fri, 31 Jul 2015 07:04:48 -0700
parents 53c8268bb88f
children 0df62b08163a
files src/java.base/unix/native/libnio/ch/Net.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/unix/native/libnio/ch/Net.c	Fri Jul 31 14:29:25 2015 +0100
+++ b/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)
 {