Add missing return
authorJonathan Wakely <jwakely@redhat.com>
Tue, 16 Oct 2018 15:24:00 +0000 (16:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 16 Oct 2018 15:24:00 +0000 (16:24 +0100)
* include/experimental/socket (basic_socket::at_mark): Add missing
return.

From-SVN: r265199

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/socket

index bfb372dff83e1ee6468488f4fc44783eee65b8e0..f02834996565a33e7b2a705b9ec5324743fc8438 100644 (file)
@@ -1,5 +1,8 @@
 2018-10-16  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/experimental/socket (basic_socket::at_mark): Add missing
+       return.
+
        * acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Replace with ...
        (GLIBCXX_CHECK_DEV_RANDOM): New macro with more descriptive name.
        Define _GLIBCXX_USE_DEV_RANDOM as well as _GLIBCXX_USE_RANDOM_TR1.
index 7adb42e7e2071d6a8938177261d23712eab88093..e92a4374db906d4bba5d3b41b3a35508845c2946 100644 (file)
@@ -756,12 +756,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       {
        const int __result = ::sockatmark(native_handle());
        if (__result == -1)
-         __ec.assign(errno, generic_category());
-       else
          {
-           __ec.clear();
-           return __result;
+           __ec.assign(errno, generic_category());
+           return false;
          }
+       __ec.clear();
+       return (bool)__result;
       }
 
       size_t