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
677efea2
Unverified
Commit
677efea2
authored
Mar 06, 2018
by
Constantin Rack
Committed by
GitHub
Mar 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2973 from bluca/deb7
Problem: build broken with gcc-4.7
parents
ec58ba04
e0b1992d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
options.cpp
src/options.cpp
+2
-2
No files found.
src/options.cpp
View file @
677efea2
...
@@ -115,7 +115,7 @@ int zmq::do_setsockopt_int_as_bool_strict (const void *const optval_,
...
@@ -115,7 +115,7 @@ int zmq::do_setsockopt_int_as_bool_strict (const void *const optval_,
// TODO handling of values other than 0 or 1 is not consistent,
// TODO handling of values other than 0 or 1 is not consistent,
// here it is disallowed, but for other options such as
// here it is disallowed, but for other options such as
// ZMQ_ROUTER_RAW any positive value is accepted
// ZMQ_ROUTER_RAW any positive value is accepted
int
value
;
int
value
=
-
1
;
if
(
do_setsockopt
(
optval_
,
optvallen_
,
&
value
)
==
-
1
)
if
(
do_setsockopt
(
optval_
,
optvallen_
,
&
value
)
==
-
1
)
return
-
1
;
return
-
1
;
if
(
value
==
0
||
value
==
1
)
{
if
(
value
==
0
||
value
==
1
)
{
...
@@ -129,7 +129,7 @@ int zmq::do_setsockopt_int_as_bool_relaxed (const void *const optval_,
...
@@ -129,7 +129,7 @@ int zmq::do_setsockopt_int_as_bool_relaxed (const void *const optval_,
const
size_t
optvallen_
,
const
size_t
optvallen_
,
bool
*
const
out_value_
)
bool
*
const
out_value_
)
{
{
int
value
;
int
value
=
-
1
;
if
(
do_setsockopt
(
optval_
,
optvallen_
,
&
value
)
==
-
1
)
if
(
do_setsockopt
(
optval_
,
optvallen_
,
&
value
)
==
-
1
)
return
-
1
;
return
-
1
;
*
out_value_
=
(
value
!=
0
);
*
out_value_
=
(
value
!=
0
);
...
...
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