From 4f8595b5275b2c48204668e7a35325fcec5bfc0c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 11 Aug 2015 19:18:13 -0700 Subject: [PATCH] Fix compilation warnings --- limelight-common/AudioStream.c | 1 - limelight-common/InputStream.c | 2 +- limelight-common/PlatformSockets.c | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/limelight-common/AudioStream.c b/limelight-common/AudioStream.c index 4465ba8..7a7c19e 100644 --- a/limelight-common/AudioStream.c +++ b/limelight-common/AudioStream.c @@ -191,7 +191,6 @@ static void ReceiveThreadProc(void* context) { } static void DecoderThreadProc(void* context) { - PRTP_PACKET rtp; int err; PQUEUED_AUDIO_PACKET packet; diff --git a/limelight-common/InputStream.c b/limelight-common/InputStream.c index 5b67fb5..b4314cc 100644 --- a/limelight-common/InputStream.c +++ b/limelight-common/InputStream.c @@ -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()); diff --git a/limelight-common/PlatformSockets.c b/limelight-common/PlatformSockets.c index de0b196..d1d1dfc 100644 --- a/limelight-common/PlatformSockets.c +++ b/limelight-common/PlatformSockets.c @@ -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);