From ee660fe0a3b4ce8c49b8b30b4e1c047210d8188e Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 27 Apr 2017 14:43:13 +1200 Subject: Correct some issues causing compiler warnings --- sand-leek.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sand-leek.c') diff --git a/sand-leek.c b/sand-leek.c index b31009f..7cf0df1 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -162,7 +163,7 @@ main(int argc, char **argv) { sem_init(&working, 0, 0); for (i = 0; i < thread_count; i++) { - if (pthread_create(&workers[i], NULL, work, &khash_count[i])) { + if (pthread_create(&workers[i], NULL, work, (void*)&khash_count[i])) { perror("pthread_create"); return 1; } -- cgit v1.1