Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
de622c81
Commit
de622c81
authored
Mar 23, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: functions are unnecessarily declared in header
Solution: remove from header and declare as static
parent
14508306
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
20 deletions
+9
-20
testutil_monitoring.cpp
tests/testutil_monitoring.cpp
+6
-6
testutil_monitoring.hpp
tests/testutil_monitoring.hpp
+0
-7
testutil_security.cpp
tests/testutil_security.cpp
+3
-3
testutil_security.hpp
tests/testutil_security.hpp
+0
-4
No files found.
tests/testutil_monitoring.cpp
View file @
de622c81
...
...
@@ -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 "
...
...
tests/testutil_monitoring.hpp
View file @
de622c81
...
...
@@ -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_
,
...
...
tests/testutil_security.cpp
View file @
de622c81
...
...
@@ -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
(
...
...
tests/testutil_security.hpp
View file @
de622c81
...
...
@@ -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_
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment