From 56042127dec3ca2a946a3d198acc60bd4e76b303 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Tue, 5 Sep 2000 23:04:46 +0000 Subject: [PATCH] * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo. From-SVN: r36170 --- libjava/ChangeLog | 5 +++-- libjava/java/net/natPlainDatagramSocketImpl.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 9088206d7cf..f3d81dc0f31 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -2,12 +2,13 @@ * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow' calls to `throw'. - (send): Undo last patch. - Remove the label only. + (send): Undo last patch. Remove the label only. (mcastGrp): Ditto. * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to `throw'. * java/net/natInetAdress.cc: Ditto. + + * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo. 2000-09-05 Tom Tromey diff --git a/libjava/java/net/natPlainDatagramSocketImpl.cc b/libjava/java/net/natPlainDatagramSocketImpl.cc index 0ea5ab16be4..808fd011ca5 100644 --- a/libjava/java/net/natPlainDatagramSocketImpl.cc +++ b/libjava/java/net/natPlainDatagramSocketImpl.cc @@ -428,7 +428,7 @@ java::net::PlainDatagramSocketImpl::mcastGrp (java::net::InetAddress *inetaddr, else throw new java::net::SocketException (JvNewStringUTF ("invalid length")); - if (::setsockopt (fnum, level, opname, ptr, len) != 0) + if (::setsockopt (fnum, level, opname, ptr, len) == 0) return; char* strerr = strerror (errno);