aboutsummaryrefslogtreecommitdiff
path: root/sand-leek.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-27 14:43:13 +1200
committerDavid Phillips <david@sighup.nz>2017-04-27 14:43:13 +1200
commitee660fe0a3b4ce8c49b8b30b4e1c047210d8188e (patch)
tree4c6c3c5a9d96226b40eafae833a9918c7f90c73f /sand-leek.c
parenta0e5cc83abdaca8c17ca581bcc5259908cde05c7 (diff)
downloadsand-leek-ee660fe0a3b4ce8c49b8b30b4e1c047210d8188e.tar.xz
Correct some issues causing compiler warnings
Diffstat (limited to 'sand-leek.c')
-rw-r--r--sand-leek.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <getopt.h>
#include <pthread.h>
#include <semaphore.h>
@@ -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;
}