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
3cbc7cb0
Commit
3cbc7cb0
authored
May 14, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: C4244 warnings regarding SOCKET vs. int in test_security_null and test_security_plain
Solution: Use fd_t
parent
3ee65906
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test_security_null.cpp
tests/test_security_null.cpp
+1
-1
test_security_plain.cpp
tests/test_security_plain.cpp
+1
-1
No files found.
tests/test_security_null.cpp
View file @
3cbc7cb0
...
@@ -209,7 +209,7 @@ int main (void)
...
@@ -209,7 +209,7 @@ int main (void)
assert
(
rc
==
0
);
assert
(
rc
==
0
);
struct
sockaddr_in
ip4addr
;
struct
sockaddr_in
ip4addr
;
in
t
s
;
fd_
t
s
;
unsigned
short
int
port
;
unsigned
short
int
port
;
rc
=
sscanf
(
my_endpoint
,
"tcp://127.0.0.1:%hu"
,
&
port
);
rc
=
sscanf
(
my_endpoint
,
"tcp://127.0.0.1:%hu"
,
&
port
);
...
...
tests/test_security_plain.cpp
View file @
3cbc7cb0
...
@@ -170,7 +170,7 @@ int main (void)
...
@@ -170,7 +170,7 @@ int main (void)
// Unauthenticated messages from a vanilla socket shouldn't be received
// Unauthenticated messages from a vanilla socket shouldn't be received
struct
sockaddr_in
ip4addr
;
struct
sockaddr_in
ip4addr
;
in
t
s
;
fd_
t
s
;
unsigned
short
int
port
;
unsigned
short
int
port
;
rc
=
sscanf
(
my_endpoint
,
"tcp://127.0.0.1:%hu"
,
&
port
);
rc
=
sscanf
(
my_endpoint
,
"tcp://127.0.0.1:%hu"
,
&
port
);
...
...
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