From f9f46d008e033ed5c82e57487f441f63d8cf5c94 Mon Sep 17 00:00:00 2001 From: Hans Zandbelt Date: Thu, 21 Dec 2023 18:31:28 +0100 Subject: [PATCH] use APR_THREAD_FUNC in thread runner declaration Signed-off-by: Hans Zandbelt --- src/metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics.c b/src/metrics.c index 2d503848..77942a97 100644 --- a/src/metrics.c +++ b/src/metrics.c @@ -602,7 +602,7 @@ unsigned int oidc_metric_random_int(unsigned int mod) { /* * thread that periodically writes the local data into the shared memory */ -static void *oidc_metrics_thread_run(apr_thread_t *thread, void *data) { +static void * APR_THREAD_FUNC oidc_metrics_thread_run(apr_thread_t *thread, void *data) { server_rec *s = (server_rec *)data; /* sleep for a short random time <1s so child processes write-lock on a different frequency */