summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2022-06-23 00:19:25 +0000
committerYann Ylavic <ylavic@apache.org>2022-06-23 00:19:25 +0000
commitf80457c70b19b92f506f580f6136eba5f34e1f18 (patch)
treeacf58c0bb1be8e822c1fc0a245c650ad49c19777 /test
parent5f8340323426db5de7e33d1d703892d6970be9ec (diff)
downloadapr-f80457c70b19b92f506f580f6136eba5f34e1f18.tar.gz
test/testlock: Fix -Werror=return-type
* test/testlock.c(thread_mutex_function, thread_mutex_sleep_function): Thread (APR_THREAD_FUNC) functions should return a pointer (NULL). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testlock.c b/test/testlock.c
index 8ff1d9d41..c5479d678 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -126,6 +126,7 @@ static void *APR_THREAD_FUNC thread_mutex_function(apr_thread_t *thd, void *data
}
apr_thread_exit(thd, APR_SUCCESS);
+ return NULL;
}
/* Sleepy-loop until f_ value matches val: */
@@ -154,6 +155,7 @@ static void *APR_THREAD_FUNC thread_mutex_sleep_function(apr_thread_t *thd, void
rv = apr_thread_mutex_unlock(timeout_mutex);
apr_thread_exit(thd, APR_SUCCESS);
+ return NULL;
}
static void *APR_THREAD_FUNC thread_cond_producer(apr_thread_t *thd, void *data)