| @@ -65,7 +65,7 @@ struct BridgeClientConnection { | |||||
| #else | #else | ||||
| int sendFlags = 0; | int sendFlags = 0; | ||||
| #endif | #endif | ||||
| ssize_t written = ::send(client, buffer, length, sendFlags); | |||||
| ssize_t written = ::send(client, (const char*) buffer, length, sendFlags); | |||||
| if (written < 0) | if (written < 0) | ||||
| closeRequested = true; | closeRequested = true; | ||||
| } | } | ||||
| @@ -289,6 +289,7 @@ static void clientRun(int client) { | |||||
| close(client); | close(client); | ||||
| }); | }); | ||||
| int err; | int err; | ||||
| (void) err; | |||||
| #ifdef ARCH_MAC | #ifdef ARCH_MAC | ||||
| // Avoid SIGPIPE | // Avoid SIGPIPE | ||||
| @@ -302,7 +303,6 @@ static void clientRun(int client) { | |||||
| ioctlsocket(client, FIONBIO, &blockingMode); | ioctlsocket(client, FIONBIO, &blockingMode); | ||||
| #else | #else | ||||
| err = fcntl(client, F_SETFL, fcntl(client, F_GETFL, 0) & ~O_NONBLOCK); | err = fcntl(client, F_SETFL, fcntl(client, F_GETFL, 0) & ~O_NONBLOCK); | ||||
| (void) err; | |||||
| #endif | #endif | ||||
| BridgeClientConnection connection; | BridgeClientConnection connection; | ||||