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

ioctlsocket() type stupidity warning.

parent 398502c1
No related branches found
No related tags found
No related merge requests found
...@@ -1904,8 +1904,13 @@ int main(int argc, char **argv) ...@@ -1904,8 +1904,13 @@ int main(int argc, char **argv)
else else
#endif #endif
{ {
i=1; #ifdef _WIN32
ioctlsocket(sock, FIONBIO, &i); // 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)) { if(!socket_check(sock, NULL, NULL, 0)) {
......
...@@ -474,7 +474,11 @@ int ...@@ -474,7 +474,11 @@ int
conn_socket_connect(struct bbslist *bbs) conn_socket_connect(struct bbslist *bbs)
{ {
SOCKET sock = INVALID_SOCKET; SOCKET sock = INVALID_SOCKET;
#ifdef _WIN32
u_long nonblock;
#else
int nonblock; int nonblock;
#endif
int failcode = FAILURE_WHAT_FAILURE; int failcode = FAILURE_WHAT_FAILURE;
struct addrinfo hints; struct addrinfo hints;
struct addrinfo *res = NULL; 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