aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2004-08-14 07:04:52 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2004-08-14 07:04:52 +0200
commit1c5192e40c0aa1c8e4f48d0ee0e5d303c72012b4 (patch)
tree93b314c93acd24adf38fa4b43a99c5c73f0e539f /libjava/java
parente427abbf2731fe52aebf1a1e2ca3bffb4f5dbe20 (diff)
downloadgcc-1c5192e40c0aa1c8e4f48d0ee0e5d303c72012b4.zip
gcc-1c5192e40c0aa1c8e4f48d0ee0e5d303c72012b4.tar.gz
gcc-1c5192e40c0aa1c8e4f48d0ee0e5d303c72012b4.tar.bz2
natInetAddressPosix.cc (lookup): Reflect rename of localhostAddress to loopbackAddress.
2004-08-14 Andreas Tobler <a.tobler@schweiz.ch> * java/net/natInetAddressPosix.cc (lookup): Reflect rename of localhostAddress to loopbackAddress. * java/net/natInetAddressWin32.cc (lookup): Likewise. From-SVN: r85982
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/net/natInetAddressPosix.cc4
-rw-r--r--libjava/java/net/natInetAddressWin32.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/net/natInetAddressPosix.cc b/libjava/java/net/natInetAddressPosix.cc
index 9edfae2..d343f23 100644
--- a/libjava/java/net/natInetAddressPosix.cc
+++ b/libjava/java/net/natInetAddressPosix.cc
@@ -167,7 +167,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
#else
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyname.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname);
#endif /* HAVE_GETHOSTBYNAME_R */
}
@@ -221,7 +221,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
#else /* HAVE_GETHOSTBYADDR_R */
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type);
#endif /* HAVE_GETHOSTBYADDR_R */
}
diff --git a/libjava/java/net/natInetAddressWin32.cc b/libjava/java/net/natInetAddressWin32.cc
index 42c7d7d..82c1e6f 100644
--- a/libjava/java/net/natInetAddressWin32.cc
+++ b/libjava/java/net/natInetAddressWin32.cc
@@ -60,7 +60,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyname.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname);
}
else
@@ -87,7 +87,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type);
}
if (hptr != NULL)