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
656205b5
Unverified
Commit
656205b5
authored
Mar 07, 2020
by
Simon Giesecke
Committed by
GitHub
Mar 07, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3844 from bluca/format
Problem: msg_t functions do not respect coding style
parents
07d36876
f9417dab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
msg.cpp
src/msg.cpp
+6
-6
No files found.
src/msg.cpp
View file @
656205b5
...
@@ -221,7 +221,7 @@ int zmq::msg_t::init_leave ()
...
@@ -221,7 +221,7 @@ int zmq::msg_t::init_leave ()
return
0
;
return
0
;
}
}
int
zmq
::
msg_t
::
init_subscribe
(
const
size_t
size_
,
const
unsigned
char
*
topic
)
int
zmq
::
msg_t
::
init_subscribe
(
const
size_t
size_
,
const
unsigned
char
*
topic
_
)
{
{
int
rc
=
init_size
(
size_
);
int
rc
=
init_size
(
size_
);
if
(
rc
==
0
)
{
if
(
rc
==
0
)
{
...
@@ -229,14 +229,14 @@ int zmq::msg_t::init_subscribe (const size_t size_, const unsigned char *topic)
...
@@ -229,14 +229,14 @@ int zmq::msg_t::init_subscribe (const size_t size_, const unsigned char *topic)
// We explicitly allow a NULL subscription with size zero
// We explicitly allow a NULL subscription with size zero
if
(
size_
)
{
if
(
size_
)
{
assert
(
topic
);
assert
(
topic
_
);
memcpy
(
data
(),
topic
,
size_
);
memcpy
(
data
(),
topic
_
,
size_
);
}
}
}
}
return
rc
;
return
rc
;
}
}
int
zmq
::
msg_t
::
init_cancel
(
const
size_t
size_
,
const
unsigned
char
*
topic
)
int
zmq
::
msg_t
::
init_cancel
(
const
size_t
size_
,
const
unsigned
char
*
topic
_
)
{
{
int
rc
=
init_size
(
size_
);
int
rc
=
init_size
(
size_
);
if
(
rc
==
0
)
{
if
(
rc
==
0
)
{
...
@@ -244,8 +244,8 @@ int zmq::msg_t::init_cancel (const size_t size_, const unsigned char *topic)
...
@@ -244,8 +244,8 @@ int zmq::msg_t::init_cancel (const size_t size_, const unsigned char *topic)
// We explicitly allow a NULL subscription with size zero
// We explicitly allow a NULL subscription with size zero
if
(
size_
)
{
if
(
size_
)
{
assert
(
topic
);
assert
(
topic
_
);
memcpy
(
data
(),
topic
,
size_
);
memcpy
(
data
(),
topic
_
,
size_
);
}
}
}
}
return
rc
;
return
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