Skip to content

Commit

Permalink
[core] Fix typo of variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
quink-black authored and maxsharabayko committed Mar 30, 2021
1 parent 0e7185e commit e328bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/epoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ int CEPoll::wait(const int eid, set<SRTSOCKET>* readfds, set<SRTSOCKET>* writefd
{
#ifdef LINUX
const int max_events = ed.m_sLocals.size();
SRT_ASSERT(max_event > 0);
SRT_ASSERT(max_events > 0);
epoll_event ev[max_events];
int nfds = ::epoll_wait(ed.m_iLocalID, ev, max_events, 0);

Expand All @@ -631,7 +631,7 @@ int CEPoll::wait(const int eid, set<SRTSOCKET>* readfds, set<SRTSOCKET>* writefd
#elif defined(BSD) || TARGET_OS_MAC
struct timespec tmout = {0, 0};
const int max_events = ed.m_sLocals.size();
SRT_ASSERT(max_event > 0);
SRT_ASSERT(max_events > 0);
struct kevent ke[max_events];

int nfds = kevent(ed.m_iLocalID, NULL, 0, ke, max_events, &tmout);
Expand Down

0 comments on commit e328bec

Please sign in to comment.