Archived
1
0

more includes and typofixes

This commit is contained in:
Jeff Becker 2018-05-06 08:56:20 -04:00
parent d370df06e8
commit 60de45415c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#include <fcntl.h> #include <fcntl.h>
#include <cstdlib> #include <cstdlib>
#include <cassert>
#include <sys/types.h>
#include <sys/socket.h>
constexpr std::size_t ev_buffsz = 512; constexpr std::size_t ev_buffsz = 512;

View File

@ -85,7 +85,7 @@ namespace ev
while(idx < ret) while(idx < ret)
{ {
event = &events[idx++]; event = &events[idx++];
handler = static_cast<io *>(ev->udata); handler = static_cast<io *>(event->udata);
if(event->flags & EV_EOF) if(event->flags & EV_EOF)
{ {
handler->close(); handler->close();