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
15e8de2f
Unverified
Commit
15e8de2f
authored
May 13, 2018
by
Luca Boccassi
Committed by
GitHub
May 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3091 from sigiesec/fix-warnings-msvc
Problem: warnings in MSVC builds around size_t/int
parents
5fe78307
d6433b5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ip_resolver.cpp
src/ip_resolver.cpp
+1
-1
ip_resolver.hpp
src/ip_resolver.hpp
+1
-1
mechanism.cpp
src/mechanism.cpp
+3
-2
No files found.
src/ip_resolver.cpp
View file @
15e8de2f
...
...
@@ -51,7 +51,7 @@ const struct sockaddr *zmq::ip_addr_t::as_sockaddr () const
return
&
generic
;
}
s
ize
_t
zmq
::
ip_addr_t
::
sockaddr_len
()
const
s
ocklen
_t
zmq
::
ip_addr_t
::
sockaddr_len
()
const
{
if
(
family
()
==
AF_INET6
)
{
return
sizeof
(
ipv6
);
...
...
src/ip_resolver.hpp
View file @
15e8de2f
...
...
@@ -48,7 +48,7 @@ union ip_addr_t
uint16_t
port
()
const
;
const
struct
sockaddr
*
as_sockaddr
()
const
;
s
ize
_t
sockaddr_len
()
const
;
s
ocklen
_t
sockaddr_len
()
const
;
void
set_port
(
uint16_t
);
...
...
src/mechanism.cpp
View file @
15e8de2f
...
...
@@ -184,13 +184,14 @@ size_t zmq::mechanism_t::add_basic_properties (unsigned char *buf,
size_t
zmq
::
mechanism_t
::
basic_properties_len
()
const
{
const
char
*
socket_type
=
socket_type_string
(
options
.
type
);
in
t
meta_len
=
0
;
size_
t
meta_len
=
0
;
for
(
std
::
map
<
std
::
string
,
std
::
string
>::
const_iterator
it
=
options
.
app_metadata
.
begin
();
it
!=
options
.
app_metadata
.
end
();
++
it
)
it
!=
options
.
app_metadata
.
end
();
++
it
)
{
meta_len
+=
property_len
(
it
->
first
.
c_str
(),
strlen
(
it
->
second
.
c_str
()));
}
return
property_len
(
ZMTP_PROPERTY_SOCKET_TYPE
,
strlen
(
socket_type
))
+
meta_len
...
...
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