Problem: C4244 warnings regarding SOCKET vs. int in test_system

Solution: Use fd_t
This commit is contained in:
Simon Giesecke 2018-05-14 20:56:30 +02:00
parent 106127b5d6
commit e447f058e2

View File

@ -82,7 +82,7 @@ int main (void)
return -1;
}
// Check that we can create 1,000 sockets
int handle[MAX_SOCKETS];
fd_t handle[MAX_SOCKETS];
int count;
for (count = 0; count < MAX_SOCKETS; count++) {
handle[count] = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);