From: Evan Hunt Date: Fri, 28 Apr 2023 01:37:29 +0000 (+0100) Subject: fix commit error in mutex_test X-Git-Tag: v9.19.13~12^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3460fe73e21924cf3f472e6bf3497fbc7a9730ba;p=thirdparty%2Fbind9.git fix commit error in mutex_test when the branch implementing mutex_test was rebased and merged, a rebasing error was missed: the isc_threadresult and isc_threadarg types no longer exist. --- diff --git a/tests/isc/mutex_test.c b/tests/isc/mutex_test.c index 26a54c85fd5..bd675db28b1 100644 --- a/tests/isc/mutex_test.c +++ b/tests/isc/mutex_test.c @@ -81,8 +81,8 @@ static size_t expected_counter = SIZE_MAX; static isc_mutex_t lock; static pthread_mutex_t mutex; -static isc_threadresult_t -pthread_mutex_thread(isc_threadarg_t arg) { +static void * +pthread_mutex_thread(void *arg) { size_t cont = *(size_t *)arg; for (size_t i = 0; i < loops; i++) { @@ -94,11 +94,11 @@ pthread_mutex_thread(isc_threadarg_t arg) { isc_pause_n(cont); } - return ((isc_threadresult_t)0); + return (NULL); } -static isc_threadresult_t -isc_mutex_thread(isc_threadarg_t arg) { +static void * +isc_mutex_thread(void *arg) { size_t cont = *(size_t *)arg; for (size_t i = 0; i < loops; i++) { @@ -110,7 +110,7 @@ isc_mutex_thread(isc_threadarg_t arg) { isc_pause_n(cont); } - return ((isc_threadresult_t)0); + return (NULL); } ISC_RUN_TEST_IMPL(isc_mutex_benchmark) {