diff options
author | Roman Kennke <roman@kennke.org> | 2006-01-17 12:29:38 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-01-17 12:29:38 +0000 |
commit | 88368b65b491556d2596cc366fb3890277cb164a (patch) | |
tree | 05d34a28dff383f312ae83c3982c92aa7f21a8af /native/jni/java-net/java_net_VMInetAddress.c | |
parent | 745afe139667f48282bebcac854561f1113beb67 (diff) | |
download | classpath-88368b65b491556d2596cc366fb3890277cb164a.tar.gz |
2006-01-17 Roman Kennke <kennke@aicas.com>
* native/jni/classpath/jcl.c: Added missing imports.
(JCL_realloc): Fixed signature to include oldsize. This is needed
for some targets. Make this function use the MEMORY_REALLOC macro
for portability.
* native/jni/classpath/jcl.h
(JCL_realloc): Adjusted signature.
* native/jni/java-io/java_io_VMFile.c:
(Java_java_io_VMFile_create): Use target layer macro for handling
errno, for portability.
(Java_java_io_VMFile_length): Release filename string in error cases
before returning.
(Java_java_io_VMFile_list): Initialize filename variable. Use new
version of JCL_realloc.
* native/jni/java-net/java_net_VMInetAddress.c:
(Java_java_net_VMInetAddress_getHostByName): Use renamed macro
TARGET_NATIVE_NETWORK_GET_HOSTADDRESS_BY_NAME.
* native/jni/java-net/javanet.c:
(_javanet_bind): Make errorstr variable const to avoid compiler
warning.
(_javanet_set_option): Fixed typo.
(_javanet_get_option): Fixed typo.
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
(Java_gnu_java_nio_channels_FileChannelImpl_open): Made
error_string variable const to avoid compiler warning.
* native/target/generic/target_generic_file.h:
Replaced // comments with /* */ comments to avoid compiler warnings.
Added some spaces to make code better readable.
* native/target/generic/target_generic_memory.h:
Replaced // comments with /* */ comments to avoid compiler warnings.
* native/target/generic/target_generic_misc.c:
Removed unused TARGET_NATIVE_MISC_FORMAT_STRING macro. This caused
compiler warnings due to use of varargs.
* native/target/generic/target_generic_misc.h:
Removed unused TARGET_NATIVE_MISC_FORMAT_STRING macro. This caused
compiler warnings due to use of varargs.
* native/target/generic/target_generic_network.h:
Replaced // comments with /* */ comments to avoid compiler warnings.
(targetGenericNetwork_receive): Fixed signature to use signed chars
for buffer parameter to avoid warning when passing a jbyte to the
function.
Diffstat (limited to 'native/jni/java-net/java_net_VMInetAddress.c')
-rw-r--r-- | native/jni/java-net/java_net_VMInetAddress.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/native/jni/java-net/java_net_VMInetAddress.c b/native/jni/java-net/java_net_VMInetAddress.c index 86ac06e6f..4229ba341 100644 --- a/native/jni/java-net/java_net_VMInetAddress.c +++ b/native/jni/java-net/java_net_VMInetAddress.c @@ -214,10 +214,10 @@ Java_java_net_VMInetAddress_getHostByName (JNIEnv * env, } max_addresses = sizeof (addresses) / sizeof (addresses[0]); - TARGET_NATIVE_NETWORK_GET_HOSTNAME_BY_NAME (hostname, - addresses, - max_addresses, - addresses_count, result); + TARGET_NATIVE_NETWORK_GET_HOSTADDRESS_BY_NAME (hostname, + addresses, + max_addresses, + addresses_count, result); if (result != TARGET_NATIVE_OK) { JCL_ThrowException (env, UNKNOWN_HOST_EXCEPTION, (char *) hostname); |