Skip to content

Commit

Permalink
Merge pull request #610 from listout/clang16-build-fix
Browse files Browse the repository at this point in the history
proc_loadavg.c: Fix incompatible integer to pointer conversion
  • Loading branch information
stgraber committed Sep 15, 2023
2 parents b69552a + 1ce7d26 commit a6069df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proc_loadavg.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,12 @@ pthread_t load_daemon(int load_use)

ret = init_load();
if (ret == -1)
return log_error(0, "Initialize hash_table fails in load_daemon!");
return (pthread_t)log_error(0, "Initialize hash_table fails in load_daemon!");

ret = pthread_create(&pid, NULL, load_begin, NULL);
if (ret != 0) {
load_free();
return log_error(0, "Create pthread fails in load_daemon!");
return (pthread_t)log_error(0, "Create pthread fails in load_daemon!");
}

/* use loadavg, here loadavg = 1*/
Expand Down

0 comments on commit a6069df

Please sign in to comment.