aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sand-leek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 8ab59d7..d35d0a6 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -290,13 +290,13 @@ main(int argc, char **argv) {
return 1;
}
- workers = calloc(thread_count, sizeof(pthread_t));
+ workers = calloc(thread_count, sizeof(workers[0]));
if (!workers) {
perror("worker thread calloc");
return 1;
}
- khashes = calloc(thread_count, sizeof(unsigned long));
+ khashes = calloc(thread_count, sizeof(khashes[0]));
if (!khashes) {
perror("hash count array calloc");
free(workers);