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
ddbf45cf
Commit
ddbf45cf
authored
5 years ago
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: redundant break after return
Solution: remove them
parent
3e7995f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
options.cpp
src/options.cpp
+0
-14
No files found.
src/options.cpp
View file @
ddbf45cf
...
...
@@ -592,7 +592,6 @@ int zmq::options_t::setsockopt (int option_,
case
ZMQ_ZAP_DOMAIN
:
return
do_setsockopt_string_allow_empty_relaxed
(
optval_
,
optvallen_
,
&
zap_domain
,
UCHAR_MAX
);
break
;
// If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE
...
...
@@ -869,7 +868,6 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_ROUTING_ID
:
return
do_getsockopt
(
optval_
,
optvallen_
,
routing_id
,
routing_id_size
);
break
;
case
ZMQ_RATE
:
if
(
is_int
)
{
...
...
@@ -1014,15 +1012,12 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_SOCKS_PROXY
:
return
do_getsockopt
(
optval_
,
optvallen_
,
socks_proxy_address
);
break
;
case
ZMQ_SOCKS_USERNAME
:
return
do_getsockopt
(
optval_
,
optvallen_
,
socks_proxy_username
);
break
;
case
ZMQ_SOCKS_PASSWORD
:
return
do_getsockopt
(
optval_
,
optvallen_
,
socks_proxy_password
);
break
;
case
ZMQ_TCP_KEEPALIVE
:
if
(
is_int
)
{
...
...
@@ -1068,15 +1063,12 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_PLAIN_USERNAME
:
return
do_getsockopt
(
optval_
,
optvallen_
,
plain_username
);
break
;
case
ZMQ_PLAIN_PASSWORD
:
return
do_getsockopt
(
optval_
,
optvallen_
,
plain_password
);
break
;
case
ZMQ_ZAP_DOMAIN
:
return
do_getsockopt
(
optval_
,
optvallen_
,
zap_domain
);
break
;
// If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE
...
...
@@ -1090,17 +1082,14 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_CURVE_PUBLICKEY
:
return
do_getsockopt_curve_key
(
optval_
,
optvallen_
,
curve_public_key
);
break
;
case
ZMQ_CURVE_SECRETKEY
:
return
do_getsockopt_curve_key
(
optval_
,
optvallen_
,
curve_secret_key
);
break
;
case
ZMQ_CURVE_SERVERKEY
:
return
do_getsockopt_curve_key
(
optval_
,
optvallen_
,
curve_server_key
);
break
;
#endif
case
ZMQ_CONFLATE
:
...
...
@@ -1121,11 +1110,9 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_GSSAPI_PRINCIPAL
:
return
do_getsockopt
(
optval_
,
optvallen_
,
gss_principal
);
break
;
case
ZMQ_GSSAPI_SERVICE_PRINCIPAL
:
return
do_getsockopt
(
optval_
,
optvallen_
,
gss_service_principal
);
break
;
case
ZMQ_GSSAPI_PLAINTEXT
:
if
(
is_int
)
{
...
...
@@ -1193,7 +1180,6 @@ int zmq::options_t::getsockopt (int option_,
case
ZMQ_BINDTODEVICE
:
return
do_getsockopt
(
optval_
,
optvallen_
,
bound_device
);
break
;
case
ZMQ_ZAP_ENFORCE_DOMAIN
:
if
(
is_int
)
{
...
...
This diff is collapsed.
Click to expand it.
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