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
14ab7946
Commit
14ab7946
authored
Dec 23, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: local functions not declared static
Solution: add static
parent
fa804c77
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
21 deletions
+20
-21
ctx.cpp
src/ctx.cpp
+1
-1
options.cpp
src/options.cpp
+7
-7
proxy.cpp
src/proxy.cpp
+11
-12
zmq.cpp
src/zmq.cpp
+1
-1
No files found.
src/ctx.cpp
View file @
14ab7946
...
...
@@ -63,7 +63,7 @@
#define ZMQ_CTX_TAG_VALUE_GOOD 0xabadcafe
#define ZMQ_CTX_TAG_VALUE_BAD 0xdeadbeef
int
clipped_maxsocket
(
int
max_requested_
)
static
int
clipped_maxsocket
(
int
max_requested_
)
{
if
(
max_requested_
>=
zmq
::
poller_t
::
max_fds
()
&&
zmq
::
poller_t
::
max_fds
()
!=
-
1
)
...
...
src/options.cpp
View file @
14ab7946
...
...
@@ -102,9 +102,9 @@ static int do_getsockopt_curve_key (void *const optval_,
#endif
template
<
typename
T
>
int
do_setsockopt
(
const
void
*
const
optval_
,
const
size_t
optvallen_
,
T
*
const
out_value_
)
static
int
do_setsockopt
(
const
void
*
const
optval_
,
const
size_t
optvallen_
,
T
*
const
out_value_
)
{
if
(
optvallen_
==
sizeof
(
T
))
{
memcpy
(
out_value_
,
optval_
,
sizeof
(
T
));
...
...
@@ -176,9 +176,9 @@ do_setsockopt_string_allow_empty_relaxed (const void *const optval_,
}
template
<
typename
T
>
int
do_setsockopt_set
(
const
void
*
const
optval_
,
const
size_t
optvallen_
,
std
::
set
<
T
>
*
const
set_
)
static
int
do_setsockopt_set
(
const
void
*
const
optval_
,
const
size_t
optvallen_
,
std
::
set
<
T
>
*
const
set_
)
{
if
(
optvallen_
==
0
&&
optval_
==
NULL
)
{
set_
->
clear
();
...
...
@@ -592,7 +592,7 @@ int zmq::options_t::setsockopt (int option_,
case
ZMQ_ZAP_DOMAIN
:
return
do_setsockopt_string_allow_empty_relaxed
(
optval_
,
optvallen_
,
&
zap_domain
,
UCHAR_MAX
);
// If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE
case
ZMQ_CURVE_SERVER
:
...
...
src/proxy.cpp
View file @
14ab7946
...
...
@@ -89,9 +89,8 @@ typedef struct
// Utility functions
int
capture
(
class
zmq
::
socket_base_t
*
capture_
,
zmq
::
msg_t
*
msg_
,
int
more_
=
0
)
static
int
capture
(
class
zmq
::
socket_base_t
*
capture_
,
zmq
::
msg_t
*
msg_
,
int
more_
=
0
)
{
// Copy message to capture socket if any
if
(
capture_
)
{
...
...
@@ -109,12 +108,12 @@ int capture (class zmq::socket_base_t *capture_,
return
0
;
}
int
forward
(
class
zmq
::
socket_base_t
*
from_
,
zmq_socket_stats_t
*
from_stats_
,
class
zmq
::
socket_base_t
*
to_
,
zmq_socket_stats_t
*
to_stats_
,
class
zmq
::
socket_base_t
*
capture_
,
zmq
::
msg_t
*
msg_
)
static
int
forward
(
class
zmq
::
socket_base_t
*
from_
,
zmq_socket_stats_t
*
from_stats_
,
class
zmq
::
socket_base_t
*
to_
,
zmq_socket_stats_t
*
to_stats_
,
class
zmq
::
socket_base_t
*
capture_
,
zmq
::
msg_t
*
msg_
)
{
// Forward a burst of messages
for
(
unsigned
int
i
=
0
;
i
<
zmq
::
proxy_burst_size
;
i
++
)
{
...
...
@@ -184,9 +183,9 @@ static int loop_and_send_multipart_stat (zmq::socket_base_t *control_,
return
rc
;
}
int
reply_stats
(
class
zmq
::
socket_base_t
*
control_
,
zmq_socket_stats_t
*
frontend_stats_
,
zmq_socket_stats_t
*
backend_stats_
)
static
int
reply_stats
(
class
zmq
::
socket_base_t
*
control_
,
zmq_socket_stats_t
*
frontend_stats_
,
zmq_socket_stats_t
*
backend_stats_
)
{
// first part: frontend stats - the first send might fail due to HWM
if
(
loop_and_send_multipart_stat
(
control_
,
frontend_stats_
->
msg_in
,
true
,
...
...
src/zmq.cpp
View file @
14ab7946
...
...
@@ -726,7 +726,7 @@ const char *zmq_msg_gets (const zmq_msg_t *msg_, const char *property_)
// Polling.
#if defined ZMQ_HAVE_POLLER
inline
int
zmq_poller_poll
(
zmq_pollitem_t
*
items_
,
int
nitems_
,
long
timeout_
)
static
int
zmq_poller_poll
(
zmq_pollitem_t
*
items_
,
int
nitems_
,
long
timeout_
)
{
// implement zmq_poll on top of zmq_poller
int
rc
;
...
...
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