mirror of
https://github.com/zeromq/libzmq.git
synced 2025-05-02 07:31:39 +02:00
Problem: C4244 warnings regarding SOCKET vs. int in test_system
Solution: Use fd_t
This commit is contained in:
parent
106127b5d6
commit
e447f058e2
@ -82,7 +82,7 @@ int main (void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// Check that we can create 1,000 sockets
|
// Check that we can create 1,000 sockets
|
||||||
int handle[MAX_SOCKETS];
|
fd_t handle[MAX_SOCKETS];
|
||||||
int count;
|
int count;
|
||||||
for (count = 0; count < MAX_SOCKETS; count++) {
|
for (count = 0; count < MAX_SOCKETS; count++) {
|
||||||
handle[count] = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
handle[count] = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user