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
This commit is contained in:
Andreas Tobler 2004-08-14 07:04:52 +02:00 committed by Andreas Tobler
parent e427abbf27
commit 1c5192e40c
3 changed files with 10 additions and 4 deletions

View file

@ -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)