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
36d265ee
Commit
36d265ee
authored
Mar 01, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: redundant parentheses in return statements
Solution: remove them
parent
0c363fbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ZMQSourceRunChecks.cmake
builds/cmake/Modules/ZMQSourceRunChecks.cmake
+1
-1
norm_engine.hpp
src/norm_engine.hpp
+2
-2
pipe.cpp
src/pipe.cpp
+1
-1
select.cpp
src/select.cpp
+1
-1
No files found.
builds/cmake/Modules/ZMQSourceRunChecks.cmake
View file @
36d265ee
...
...
@@ -42,7 +42,7 @@ macro(zmq_check_o_cloexec)
int main(int argc, char *argv [])
{
int s = open (
\"
/dev/null
\"
, O_CLOEXEC | O_RDONLY);
return
(s == -1)
;
return
s == -1
;
}
"
ZMQ_HAVE_O_CLOEXEC
)
...
...
src/norm_engine.hpp
View file @
36d265ee
...
...
@@ -87,7 +87,7 @@ class norm_engine_t : public io_object_t, public i_engine
// These are used to feed data to decoder
// and its underlying "msg" buffer
char
*
AccessBuffer
()
{
return
(
char
*
)
(
buffer_ptr
+
buffer_count
);
}
size_t
GetBytesNeeded
()
const
{
return
(
buffer_size
-
buffer_count
)
;
}
size_t
GetBytesNeeded
()
const
{
return
buffer_size
-
buffer_count
;
}
void
IncrementBufferCount
(
size_t
count
)
{
buffer_count
+=
count
;
}
msg_t
*
AccessMsg
()
{
return
zmq_decoder
->
msg
();
}
// This invokes the decoder "decode" method
...
...
@@ -106,7 +106,7 @@ class norm_engine_t : public io_object_t, public i_engine
void
Append
(
NormRxStreamState
&
item
);
void
Remove
(
NormRxStreamState
&
item
);
bool
IsEmpty
()
const
{
return
(
NULL
==
head
)
;
}
bool
IsEmpty
()
const
{
return
NULL
==
head
;
}
void
Destroy
();
...
...
src/pipe.cpp
View file @
36d265ee
...
...
@@ -546,7 +546,7 @@ bool zmq::pipe_t::check_hwm () const
{
const
bool
full
=
_hwm
>
0
&&
_msgs_written
-
_peers_msgs_read
>=
uint64_t
(
_hwm
);
return
(
!
full
)
;
return
!
full
;
}
void
zmq
::
pipe_t
::
send_hwms_to_peer
(
int
inhwm_
,
int
outhwm_
)
...
...
src/select.cpp
View file @
36d265ee
...
...
@@ -542,7 +542,7 @@ void zmq::select_t::cleanup_retired ()
bool
zmq
::
select_t
::
is_retired_fd
(
const
fd_entry_t
&
entry_
)
{
return
(
entry_
.
fd
==
retired_fd
)
;
return
entry_
.
fd
==
retired_fd
;
}
zmq
::
select_t
::
family_entry_t
::
family_entry_t
()
:
has_retired
(
false
)
...
...
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