fix: cache.c warning that incompatible-pointer-types check

The definition of the third parameter of pthread is void *(*start_routine)(void *)

Signed-off-by: miny1233 <36765446+miny1233@users.noreply.github.com>
This commit is contained in:
miny1233 2024-06-29 19:35:11 +08:00 committed by Zxilly
parent 431824a007
commit 448c047601

View File

@ -14,7 +14,7 @@ pthread_rwlock_t cacheLock;
struct cache *not_http_dst_cache = NULL;
static int check_interval;
_Noreturn static void check_cache() {
_Noreturn static void* check_cache(void*) {
while (true) {
pthread_rwlock_wrlock(&cacheLock);