Code cleanup: use stdbool.h
This commit is contained in:
parent
e9ee868da4
commit
5f9f7ce407
27 changed files with 286 additions and 299 deletions
|
|
@ -72,7 +72,7 @@ unsigned short LiGetPortFromPortFlagIndex(int portFlagIndex)
|
|||
return 48010;
|
||||
|
||||
default:
|
||||
LC_ASSERT(0);
|
||||
LC_ASSERT(false);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
|
|||
sockets[i] = createSocket(address.ss_family,
|
||||
LiGetProtocolFromPortFlagIndex(i) == IPPROTO_UDP ? SOCK_DGRAM : SOCK_STREAM,
|
||||
LiGetProtocolFromPortFlagIndex(i),
|
||||
1);
|
||||
true);
|
||||
if (sockets[i] == INVALID_SOCKET) {
|
||||
err = LastSocketFail();
|
||||
Limelog("Failed to create socket: %d\n", err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue