mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix compilation warnings
This commit is contained in:
parent
c421740ded
commit
4f8595b527
@ -191,7 +191,6 @@ static void ReceiveThreadProc(void* context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void DecoderThreadProc(void* context) {
|
static void DecoderThreadProc(void* context) {
|
||||||
PRTP_PACKET rtp;
|
|
||||||
int err;
|
int err;
|
||||||
PQUEUED_AUDIO_PACKET packet;
|
PQUEUED_AUDIO_PACKET packet;
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ static void inputSendThreadProc(void* context) {
|
|||||||
|
|
||||||
// Send the encrypted payload
|
// Send the encrypted payload
|
||||||
err = send(inputSock, (const char*) &encryptedBuffer[OAES_DATA_OFFSET - sizeof(encryptedLengthPrefix)],
|
err = send(inputSock, (const char*) &encryptedBuffer[OAES_DATA_OFFSET - sizeof(encryptedLengthPrefix)],
|
||||||
encryptedSize + sizeof(encryptedLengthPrefix), 0);
|
(int)(encryptedSize + sizeof(encryptedLengthPrefix)), 0);
|
||||||
if (err <= 0) {
|
if (err <= 0) {
|
||||||
Limelog("Input: send() failed: %d\n", (int)LastSocketError());
|
Limelog("Input: send() failed: %d\n", (int)LastSocketError());
|
||||||
ListenerCallbacks.connectionTerminated(LastSocketError());
|
ListenerCallbacks.connectionTerminated(LastSocketError());
|
||||||
|
@ -24,7 +24,9 @@ void addrToUrlSafeString(struct sockaddr_storage *addr, char* string)
|
|||||||
SOCKET bindUdpSocket(int addrfamily, int bufferSize) {
|
SOCKET bindUdpSocket(int addrfamily, int bufferSize) {
|
||||||
SOCKET s;
|
SOCKET s;
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr;
|
||||||
|
#ifdef LC_DARWIN
|
||||||
int val;
|
int val;
|
||||||
|
#endif
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
LC_ASSERT(addrfamily == AF_INET || addrfamily == AF_INET6);
|
LC_ASSERT(addrfamily == AF_INET || addrfamily == AF_INET6);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user