Skip to content
Snippets Groups Projects
Commit 9c7e3921 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

ioctlsocket() type stupidity warning.

parent 14b3ad7d
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -1904,8 +1904,13 @@ int main(int argc, char **argv)
else
#endif
{
i=1;
ioctlsocket(sock, FIONBIO, &i);
#ifdef _WIN32
// TODO: Is there a type for this?
u_long nonblock = 1;
#else
int nonblock = 1;
#endif
ioctlsocket(sock, FIONBIO, &nonblock);
}
if(!socket_check(sock, NULL, NULL, 0)) {
......
......@@ -474,7 +474,11 @@ int
conn_socket_connect(struct bbslist *bbs)
{
SOCKET sock = INVALID_SOCKET;
#ifdef _WIN32
u_long nonblock;
#else
int nonblock;
#endif
int failcode = FAILURE_WHAT_FAILURE;
struct addrinfo hints;
struct addrinfo *res = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment