Skip to content

Commit

Permalink
Fix warning for sc_sock on Windows (tezc#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
svladykin committed Jun 22, 2022
1 parent 3a251b4 commit c87e906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socket/sc_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void sc_sock_errstr(struct sc_sock *s, int gai_err)

int sc_sock_set_blocking(struct sc_sock *s, bool blocking)
{
int mode = blocking ? 0 : 1;
u_long mode = blocking ? 0 : 1;
int rc = ioctlsocket(s->fdt.fd, FIONBIO, &mode);

return rc == 0 ? 0 : -1;
Expand Down

0 comments on commit c87e906

Please sign in to comment.