Skip to content

Commit

Permalink
Use the correct type for function passed to pthread_create.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed Feb 11, 2025
1 parent 7638efe commit bf0a6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/binaries/heap-multiple-heaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
2 changes: 1 addition & 1 deletion tests/binaries/heap-non-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <pthread.h>
#include "utils.h"

void *thread()
void *thread(void *arg)
{
void* p1 = malloc(0x18);
void* p2 = malloc(0x18);
Expand Down

0 comments on commit bf0a6db

Please sign in to comment.