Skip to content

Commit

Permalink
use APR_THREAD_FUNC in thread runner declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Dec 21, 2023
1 parent 714a879 commit f9f46d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f9f46d0

Please sign in to comment.