mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Code cleanup: use stdbool.h
This commit is contained in:
1 parent
e9ee868da4
commit
5f9f7ce407
27 files changed
+286
-299
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user