From: Bruno Haible Date: Wed, 20 Nov 2019 02:45:01 +0000 (+0100) Subject: threads-h tests: Fix typo. X-Git-Tag: v1.0~4588 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a948afdbc503f885d368725e340afd78718e77f8;p=gnulib.git threads-h tests: Fix typo. * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'. --- diff --git a/ChangeLog b/ChangeLog index 166074b884..1217f31755 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-11-19 Bruno Haible + + threads-h tests: Fix typo. + * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'. + 2019-11-19 Bruno Haible pthread-thread: Fix prototype of pthread_attr_getdetachstate. diff --git a/tests/test-threads-c++.cc b/tests/test-threads-c++.cc index 66877d4e94..ae0d86507a 100644 --- a/tests/test-threads-c++.cc +++ b/tests/test-threads-c++.cc @@ -38,13 +38,13 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::thrd_exit, _Noreturn void, (int)); #endif #if GNULIB_TEST_MTX -SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_init, int, (mtx *, int)); -SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_lock, int, (mtx *)); -SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_trylock, int, (mtx *)); +SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_init, int, (mtx_t *, int)); +SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_lock, int, (mtx_t *)); +SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_trylock, int, (mtx_t *)); SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_timedlock, int, - (mtx *, const struct timespec *)); -SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_unlock, int, (mtx *)); -SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_destroy, void, (mtx *)); + (mtx_t *, const struct timespec *)); +SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_unlock, int, (mtx_t *)); +SIGNATURE_CHECK (GNULIB_NAMESPACE::mtx_destroy, void, (mtx_t *)); SIGNATURE_CHECK (GNULIB_NAMESPACE::call_once, void, (once_flag *, void (*) (void))); #endif