1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00

Seeing if this fixes the last warnings for Windows

This commit is contained in:
llmII 2021-09-06 19:57:56 -05:00
parent e29fa66a74
commit 3740eadb7d
No known key found for this signature in database
GPG Key ID: E3AD2E259F58A9A0

View File

@ -788,7 +788,7 @@ JANET_CORE_FN(cfun_net_getsockname,
memset(&ss, 0, slen);
int error;
if (0 != (error = getsockname(js->handle, (struct sockaddr *) &ss, &slen)))
if (0 != (error = getsockname((JSock)js->handle, (struct sockaddr *) &ss, &slen)))
janet_panicf("Failed to get peername on fd %d, error: %s", js->handle, janet_ev_lasterr());
return janet_so_getname(&ss, slen);
@ -805,7 +805,7 @@ JANET_CORE_FN(cfun_net_getpeername,
memset(&ss, 0, slen);
int error;
if (0 != (error = getpeername(js->handle, (struct sockaddr *)&ss, &slen))) {
if (0 != (error = getpeername((JSock)js->handle, (struct sockaddr *)&ss, &slen))) {
janet_panicf("Failed to get peername on fd %d, error: %s", js->handle, janet_ev_lasterr());
}