Skip to content

Commit

Permalink
test: Fix test apps linux port alloc size
Browse files Browse the repository at this point in the history
This is a minor fix, as sys_sem_t is defined as
`typedef struct sys_sem * sys_sem_t;`
so the size is still the same (size of pointer)

Closes #54
  • Loading branch information
david-cermak committed Aug 14, 2023
1 parent 269a58f commit d6b0060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/apps/linux/sys_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ sys_thread_sem_alloc(void)
err_t err;
int ret;

sem = (sys_sem_t*)malloc(sizeof(sys_sem_t*));
sem = (sys_sem_t*)malloc(sizeof(sys_sem_t));
LWIP_ASSERT("failed to allocate memory for TLS semaphore", sem != NULL);
err = sys_sem_new(sem, 0);
LWIP_ASSERT("failed to initialise TLS semaphore", err == ERR_OK);
Expand Down

0 comments on commit d6b0060

Please sign in to comment.