Commit de622c81 authored by Simon Giesecke's avatar Simon Giesecke

Problem: functions are unnecessarily declared in header

Solution: remove from header and declare as static
parent 14508306
...@@ -112,12 +112,12 @@ void expect_monitor_event (void *monitor_, int expected_event_) ...@@ -112,12 +112,12 @@ void expect_monitor_event (void *monitor_, int expected_event_)
get_monitor_event (monitor_, NULL, NULL)); get_monitor_event (monitor_, NULL, NULL));
} }
void print_unexpected_event (char *buf_, static void print_unexpected_event (char *buf_,
size_t buf_size_, size_t buf_size_,
int event_, int event_,
int err_, int err_,
int expected_event_, int expected_event_,
int expected_err_) int expected_err_)
{ {
snprintf (buf_, buf_size_, snprintf (buf_, buf_size_,
"Unexpected event: 0x%x, value = %i/0x%x (expected: 0x%x, value " "Unexpected event: 0x%x, value = %i/0x%x (expected: 0x%x, value "
......
...@@ -46,13 +46,6 @@ int get_monitor_event (void *monitor_, int *value_, char **address_); ...@@ -46,13 +46,6 @@ int get_monitor_event (void *monitor_, int *value_, char **address_);
void expect_monitor_event (void *monitor_, int expected_event_); void expect_monitor_event (void *monitor_, int expected_event_);
void print_unexpected_event (char *buf_,
size_t buf_size_,
int event_,
int err_,
int expected_event_,
int expected_err_);
void print_unexpected_event_stderr (int event_, void print_unexpected_event_stderr (int event_,
int err_, int err_,
int expected_event_, int expected_event_,
......
...@@ -263,9 +263,9 @@ void zap_handler (void *) ...@@ -263,9 +263,9 @@ void zap_handler (void *)
zap_handler_generic (zap_ok); zap_handler_generic (zap_ok);
} }
void setup_handshake_socket_monitor (void *server_, static void setup_handshake_socket_monitor (void *server_,
void **server_mon_, void **server_mon_,
const char *monitor_endpoint_) const char *monitor_endpoint_)
{ {
// Monitor handshake events on the server // Monitor handshake events on the server
TEST_ASSERT_SUCCESS_ERRNO (zmq_socket_monitor ( TEST_ASSERT_SUCCESS_ERRNO (zmq_socket_monitor (
......
...@@ -122,10 +122,6 @@ void zap_handler (void * /*unused_*/); ...@@ -122,10 +122,6 @@ void zap_handler (void * /*unused_*/);
TEST_ASSERT_EQUAL_INT (0, event_count); \ TEST_ASSERT_EQUAL_INT (0, event_count); \
} }
void setup_handshake_socket_monitor (void *server_,
void **server_mon_,
const char *monitor_endpoint_);
void setup_context_and_server_side ( void setup_context_and_server_side (
void **zap_control_, void **zap_control_,
void **zap_thread_, void **zap_thread_,
......
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