Skip to content

Commit

Permalink
fix: cache.c warning that incompatible-pointer-types check
Browse files Browse the repository at this point in the history
The definition of the third parameter of pthread is void *(*start_routine)(void *)

Signed-off-by: miny1233 <[email protected]>
  • Loading branch information
miny1233 authored and Zxilly committed Jun 29, 2024
1 parent 431824a commit 448c047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 448c047

Please sign in to comment.