more includes and typofixes
This commit is contained in:
parent
d370df06e8
commit
60de45415c
@ -1,5 +1,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
constexpr std::size_t ev_buffsz = 512;
|
||||
|
||||
|
@ -85,7 +85,7 @@ namespace ev
|
||||
while(idx < ret)
|
||||
{
|
||||
event = &events[idx++];
|
||||
handler = static_cast<io *>(ev->udata);
|
||||
handler = static_cast<io *>(event->udata);
|
||||
if(event->flags & EV_EOF)
|
||||
{
|
||||
handler->close();
|
||||
|
Reference in New Issue
Block a user