natPlainSocketImplPosix.cc (bind): Remove check for null host.

* gnu/java/net/natPlainSocketImplPosix.cc (bind): Remove check for
	null host.

From-SVN: r132726
This commit is contained in:
David Daney 2008-02-27 18:53:02 +00:00 committed by David Daney
parent 2a1ed4fcfd
commit 296746bda3
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2008-02-27 David Daney <ddaney@avtrex.com>
* gnu/java/net/natPlainSocketImplPosix.cc (bind): Remove check for
null host.
2008-02-20 Tom Tromey <tromey@redhat.com>
PR libgcj/24170:

View File

@ -99,12 +99,7 @@ gnu::java::net::PlainSocketImpl::bind (::java::net::InetAddress *host, jint lpor
if (len == 4)
{
u.address.sin_family = AF_INET;
if (host != NULL)
memcpy (&u.address.sin_addr, bytes, len);
else
u.address.sin_addr.s_addr = htonl (INADDR_ANY);
memcpy (&u.address.sin_addr, bytes, len);
len = sizeof (struct sockaddr_in);
u.address.sin_port = htons (lport);
}