mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +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:
parent
3ee65906af
commit
3cbc7cb0dc
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user