Skip to content

Commit

Permalink
Bug Fix: Fix warning on setsockopt on windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Theldus authored Sep 2, 2024
1 parent 8c67ca8 commit 0d09382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ static void *ws_accept(void *data)
* See:
* https://linux.die.net/man/3/setsockopt
*/
setsockopt(new_sock, SOL_SOCKET, SO_SNDTIMEO, &time,
setsockopt(new_sock, SOL_SOCKET, SO_SNDTIMEO, (const char*)&time,
sizeof(struct timeval));
}

Expand Down

0 comments on commit 0d09382

Please sign in to comment.