Skip to content

Commit

Permalink
fix a few unnecessary warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jun 13, 2021
1 parent 18b09bc commit cbc8d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Platform_WinApi.c
Expand Up @@ -420,7 +420,7 @@ cc_result Socket_Available(cc_socket s, int* available) {

cc_result Socket_GetError(cc_socket s, cc_result* result) {
int resultSize = sizeof(cc_result);
return getsockopt(s, SOL_SOCKET, SO_ERROR, result, &resultSize);
return getsockopt(s, SOL_SOCKET, SO_ERROR, (char*)result, &resultSize);
}

static int ParseHost(void* dst, WCHAR* host, int port) {
Expand All @@ -444,7 +444,7 @@ static int Socket_ParseAddress(void* dst, const cc_string* address, int port) {
SOCKADDR_IN* addr4 = (SOCKADDR_IN*)dst;
SOCKADDR_IN6* addr6 = (SOCKADDR_IN6*)dst;
WCHAR str[NATIVE_STR_LEN];
DWORD size;
INT size;
Platform_EncodeUtf16(str, address);

size = sizeof(*addr4);
Expand Down

0 comments on commit cbc8d50

Please sign in to comment.