Commit a62e9d35 authored by Simon Giesecke's avatar Simon Giesecke

Problem: internal functions present in header file

Solution: remove declaration and make functions static
parent 5d74eba6
......@@ -124,7 +124,7 @@ void recv_string_expect_success (void *socket_, const char *str_, int flags_)
TEST_ASSERT_EQUAL_STRING_LEN (str_, buffer, len);
}
void *internal_manage_test_context (bool init_, bool clear_)
static void *internal_manage_test_context (bool init_, bool clear_)
{
static void *test_context = NULL;
if (clear_) {
......@@ -141,7 +141,7 @@ void *internal_manage_test_context (bool init_, bool clear_)
return test_context;
}
void internal_manage_test_sockets (void *socket_, bool add_)
static void internal_manage_test_sockets (void *socket_, bool add_)
{
static void *test_sockets[MAX_TEST_SOCKETS];
static size_t test_socket_count = 0;
......
......@@ -101,13 +101,8 @@ void recv_array_expect_success (void *socket_,
TEST_ASSERT_EQUAL_UINT8_ARRAY (array_, buffer, SIZE);
}
// do not call from tests directly, use setup_test_context, get_test_context and teardown_test_context only
void *internal_manage_test_context (bool init_, bool clear_);
#define MAX_TEST_SOCKETS 128
void internal_manage_test_sockets (void *socket_, bool add_);
void setup_test_context ();
void *get_test_context ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment