Commit 3cbc7cb0 authored by Simon Giesecke's avatar Simon Giesecke

Problem: C4244 warnings regarding SOCKET vs. int in test_security_null and test_security_plain

Solution: Use fd_t
parent 3ee65906
...@@ -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;
int 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);
......
...@@ -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;
int 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment