Skip to content

Commit 82e2bc1

Browse files
committed
tests: newlib: thread_safety: Fix test function scope
This commit adds the `static` keyword to the test functions that are not intended to be globally available. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent dd3cad3 commit 82e2bc1

File tree

1 file changed

+2
-2
lines changed
  • tests/lib/newlib/thread_safety/src

1 file changed

+2
-2
lines changed

tests/lib/newlib/thread_safety/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
static struct k_thread tdata[THREAD_COUNT];
2626
static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREAD_COUNT, STACK_SIZE);
2727

28-
void malloc_thread(void *p1, void *p2, void *p3)
28+
static void malloc_thread(void *p1, void *p2, void *p3)
2929
{
3030
static atomic_t count;
3131
bool *aborted = p1;
@@ -62,7 +62,7 @@ void malloc_thread(void *p1, void *p2, void *p3)
6262
* This test calls the malloc() and free() functions from multiple threads to
6363
* verify that no corruption occurs in the newlib memory heap.
6464
*/
65-
void test_malloc_thread_safety(void)
65+
static void test_malloc_thread_safety(void)
6666
{
6767
int i;
6868
k_tid_t tid[THREAD_COUNT];

0 commit comments

Comments
 (0)