mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Problem: functions are unnecessarily declared in header
Solution: remove from header and declare as static
This commit is contained in:
parent
1450830611
commit
de622c8198
@ -112,12 +112,12 @@ void expect_monitor_event (void *monitor_, int expected_event_)
|
||||
get_monitor_event (monitor_, NULL, NULL));
|
||||
}
|
||||
|
||||
void print_unexpected_event (char *buf_,
|
||||
size_t buf_size_,
|
||||
int event_,
|
||||
int err_,
|
||||
int expected_event_,
|
||||
int expected_err_)
|
||||
static void print_unexpected_event (char *buf_,
|
||||
size_t buf_size_,
|
||||
int event_,
|
||||
int err_,
|
||||
int expected_event_,
|
||||
int expected_err_)
|
||||
{
|
||||
snprintf (buf_, buf_size_,
|
||||
"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_);
|
||||
|
||||
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_,
|
||||
int err_,
|
||||
int expected_event_,
|
||||
|
@ -263,9 +263,9 @@ void zap_handler (void *)
|
||||
zap_handler_generic (zap_ok);
|
||||
}
|
||||
|
||||
void setup_handshake_socket_monitor (void *server_,
|
||||
void **server_mon_,
|
||||
const char *monitor_endpoint_)
|
||||
static void setup_handshake_socket_monitor (void *server_,
|
||||
void **server_mon_,
|
||||
const char *monitor_endpoint_)
|
||||
{
|
||||
// Monitor handshake events on the server
|
||||
TEST_ASSERT_SUCCESS_ERRNO (zmq_socket_monitor (
|
||||
|
@ -122,10 +122,6 @@ void zap_handler (void * /*unused_*/);
|
||||
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 **zap_control_,
|
||||
void **zap_thread_,
|
||||
|
Loading…
x
Reference in New Issue
Block a user