From bf0a6dbd12a95bb65777c6b5bdbc5900d4274a28 Mon Sep 17 00:00:00 2001 From: Gordon Messmer Date: Tue, 11 Feb 2025 15:12:47 -0800 Subject: [PATCH] Use the correct type for function passed to pthread_create. --- tests/binaries/heap-multiple-heaps.c | 2 +- tests/binaries/heap-non-main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/binaries/heap-multiple-heaps.c b/tests/binaries/heap-multiple-heaps.c index 3a9d1dd25..cdeec68ae 100644 --- a/tests/binaries/heap-multiple-heaps.c +++ b/tests/binaries/heap-multiple-heaps.c @@ -21,7 +21,7 @@ /* The expected distance is the chunk size plus room for the metadata. */ #define EXPECTED_CHUNK_DISTANCE LESS_THAN_MMAP_THRESHOLD + 24 -void *thread() +void *thread(void *arg) { void *pointers[NUM_ALLOCS]; for (int i = 0; i < NUM_ALLOCS; i++) { diff --git a/tests/binaries/heap-non-main.c b/tests/binaries/heap-non-main.c index 3a2369f4b..28d4959f2 100644 --- a/tests/binaries/heap-non-main.c +++ b/tests/binaries/heap-non-main.c @@ -8,7 +8,7 @@ #include #include "utils.h" -void *thread() +void *thread(void *arg) { void* p1 = malloc(0x18); void* p2 = malloc(0x18);