mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Problem: internal functions present in header file
Solution: remove declaration and make functions static
This commit is contained in:
@@ -124,7 +124,7 @@ void recv_string_expect_success (void *socket_, const char *str_, int flags_)
|
|||||||
TEST_ASSERT_EQUAL_STRING_LEN (str_, buffer, len);
|
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;
|
static void *test_context = NULL;
|
||||||
if (clear_) {
|
if (clear_) {
|
||||||
@@ -141,7 +141,7 @@ void *internal_manage_test_context (bool init_, bool clear_)
|
|||||||
return test_context;
|
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 void *test_sockets[MAX_TEST_SOCKETS];
|
||||||
static size_t test_socket_count = 0;
|
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);
|
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
|
#define MAX_TEST_SOCKETS 128
|
||||||
|
|
||||||
void internal_manage_test_sockets (void *socket_, bool add_);
|
|
||||||
|
|
||||||
void setup_test_context ();
|
void setup_test_context ();
|
||||||
|
|
||||||
void *get_test_context ();
|
void *get_test_context ();
|
||||||
|
|||||||
Reference in New Issue
Block a user