mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +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) {
|
||||
PRTP_PACKET rtp;
|
||||
int err;
|
||||
PQUEUED_AUDIO_PACKET packet;
|
||||
|
||||
|
@ -259,7 +259,7 @@ static void inputSendThreadProc(void* context) {
|
||||
|
||||
// Send the encrypted payload
|
||||
err = send(inputSock, (const char*) &encryptedBuffer[OAES_DATA_OFFSET - sizeof(encryptedLengthPrefix)],
|
||||
encryptedSize + sizeof(encryptedLengthPrefix), 0);
|
||||
(int)(encryptedSize + sizeof(encryptedLengthPrefix)), 0);
|
||||
if (err <= 0) {
|
||||
Limelog("Input: send() failed: %d\n", (int)LastSocketError());
|
||||
ListenerCallbacks.connectionTerminated(LastSocketError());
|
||||
|
@ -24,7 +24,9 @@ void addrToUrlSafeString(struct sockaddr_storage *addr, char* string)
|
||||
SOCKET bindUdpSocket(int addrfamily, int bufferSize) {
|
||||
SOCKET s;
|
||||
struct sockaddr_storage addr;
|
||||
#ifdef LC_DARWIN
|
||||
int val;
|
||||
#endif
|
||||
int err;
|
||||
|
||||
LC_ASSERT(addrfamily == AF_INET || addrfamily == AF_INET6);
|
||||
|
Loading…
x
Reference in New Issue
Block a user