From a948afdbc503f885d368725e340afd78718e77f8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 20 Nov 2019 03:45:01 +0100 Subject: [PATCH] threads-h tests: Fix typo. * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'. --- ChangeLog | 5 +++++ tests/test-threads-c++.cc | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) 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 -- 2.39.5