0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

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

Solution: Use fd_t
This commit is contained in:
Simon Giesecke 2018-05-14 20:51:38 +02:00
parent 3ee65906af
commit 3cbc7cb0dc
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ int main (void)
assert (rc == 0);
struct sockaddr_in ip4addr;
int s;
fd_t s;
unsigned short int port;
rc = sscanf (my_endpoint, "tcp://127.0.0.1:%hu", &port);

View File

@ -170,7 +170,7 @@ int main (void)
// Unauthenticated messages from a vanilla socket shouldn't be received
struct sockaddr_in ip4addr;
int s;
fd_t s;
unsigned short int port;
rc = sscanf (my_endpoint, "tcp://127.0.0.1:%hu", &port);