Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion erts/emulator/drivers/common/inet_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -13522,7 +13522,7 @@ static int tcp_send_error(tcp_descriptor* desc, int err)
* show_econnreset socket option enabled to receive {error, econnreset} on
* both send and recv operations to indicate that an RST has been received.
*/
#ifdef __WIN_32__
#ifdef __WIN32__
if (err == ECONNABORTED)
err = ECONNRESET;
#endif
Expand Down
2 changes: 1 addition & 1 deletion erts/emulator/nifs/common/prim_socket_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -6040,7 +6040,7 @@ nif_sendfile(ErlNifEnv* env,

if ((! (a2ok = GET_INT64(env, argv[2], &offset64))) ||
(! GET_UINT64(env, argv[3], &count64u))) {
if ((! IS_INTEGER(env, argv[3])) ||
if ((! IS_INTEGER(env, argv[2])) ||
(! IS_INTEGER(env, argv[3])))
return enif_make_badarg(env);
if (! a2ok)
Expand Down
Loading