Fix compilation warnings

This commit is contained in:
Cameron Gutman 2015-08-11 19:18:13 -07:00
parent c421740ded
commit 4f8595b527
3 changed files with 3 additions and 2 deletions

View File

@ -191,7 +191,6 @@ static void ReceiveThreadProc(void* context) {
}
static void DecoderThreadProc(void* context) {
PRTP_PACKET rtp;
int err;
PQUEUED_AUDIO_PACKET packet;

View File

@ -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());

View File

@ -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);