summaryrefslogtreecommitdiff
path: root/event_iocp.c
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2019-01-29 21:12:33 +0300
committerAzat Khuzhin <azat@libevent.org>2019-01-29 22:03:08 +0300
commitb29207dceee33832bb28ab103a833df6a2fd29d3 (patch)
tree9f2f00fb446f27039c39c64647f4b6b2dfdee487 /event_iocp.c
parent74c10894117f9dd2b230ec8d0e30d41c08df3b45 (diff)
downloadlibevent-b29207dceee33832bb28ab103a833df6a2fd29d3.tar.gz
Eliminate fd conversion warnings and introduce EVUTIL_INVALID_SOCKET (windows)
windows has intptr_t instead of regular int. Also tt_fd_op() had been introduced, since we cannot use tt_int_op() for comparing fd, since it is not always int.
Diffstat (limited to 'event_iocp.c')
-rw-r--r--event_iocp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event_iocp.c b/event_iocp.c
index a9902fbc..6b2a2e15 100644
--- a/event_iocp.c
+++ b/event_iocp.c
@@ -151,7 +151,7 @@ init_extension_functions(struct win32_extension_fns *ext)
const GUID connectex = WSAID_CONNECTEX;
const GUID getacceptexsockaddrs = WSAID_GETACCEPTEXSOCKADDRS;
SOCKET s = socket(AF_INET, SOCK_STREAM, 0);
- if (s == INVALID_SOCKET)
+ if (s == EVUTIL_INVALID_SOCKET)
return;
ext->AcceptEx = get_extension_function(s, &acceptex);
ext->ConnectEx = get_extension_function(s, &connectex);