From: Jonathan Wakely Date: Wed, 25 Nov 2020 12:16:07 +0000 (+0000) Subject: libstdc++: Fix silly typos [PR 97936] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ccfd04605d940daded7e95474389f1c7dfad61;p=gcc.git libstdc++: Fix silly typos [PR 97936] libstdc++-v3/ChangeLog: PR libstdc++/97936 * include/bits/atomic_wait.h (__platform_wait): Check errno, not just the value of EAGAIN. (__waiters::__waiters()): Fix name of data member. --- diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h index fdf7c4586f2..5af9367ca2e 100644 --- a/libstdc++-v3/include/bits/atomic_wait.h +++ b/libstdc++-v3/include/bits/atomic_wait.h @@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION auto __e = syscall (SYS_futex, static_cast(__addr), static_cast(__futex_wait_flags::__wait_private), __val, nullptr); - if (!__e || EAGAIN) + if (!__e || errno == EAGAIN) break; else if (errno != EINTR) __throw_system_error(__e); @@ -133,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION mutable __gthread_cond_t _M_cv; __waiters() noexcept { - __GTHREAD_COND_INIT_FUNCTION(&_M_cond); + __GTHREAD_COND_INIT_FUNCTION(&_M_cv); } # endif #endif