Commit 1c5192e4 by Andreas Tobler Committed by Andreas Tobler

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
parent e427abbf
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.
2004-08-13 Bryce McKinlay <mckinlay@redhat.com> 2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
* configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
......
...@@ -167,7 +167,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr, ...@@ -167,7 +167,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
#else #else
// FIXME: this is insufficient if some other piece of code calls // FIXME: this is insufficient if some other piece of code calls
// this gethostbyname. // this gethostbyname.
JvSynchronize sync (java::net::InetAddress::localhostAddress); JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname); hptr = gethostbyname (hostname);
#endif /* HAVE_GETHOSTBYNAME_R */ #endif /* HAVE_GETHOSTBYNAME_R */
} }
...@@ -221,7 +221,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr, ...@@ -221,7 +221,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
#else /* HAVE_GETHOSTBYADDR_R */ #else /* HAVE_GETHOSTBYADDR_R */
// FIXME: this is insufficient if some other piece of code calls // FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr. // this gethostbyaddr.
JvSynchronize sync (java::net::InetAddress::localhostAddress); JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type); hptr = gethostbyaddr (val, len, type);
#endif /* HAVE_GETHOSTBYADDR_R */ #endif /* HAVE_GETHOSTBYADDR_R */
} }
......
...@@ -60,7 +60,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr, ...@@ -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 // FIXME: this is insufficient if some other piece of code calls
// this gethostbyname. // this gethostbyname.
JvSynchronize sync (java::net::InetAddress::localhostAddress); JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname); hptr = gethostbyname (hostname);
} }
else else
...@@ -87,7 +87,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr, ...@@ -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 // FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr. // this gethostbyaddr.
JvSynchronize sync (java::net::InetAddress::localhostAddress); JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type); hptr = gethostbyaddr (val, len, type);
} }
if (hptr != NULL) if (hptr != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment