From 2a8fd0f5a2c9611b20f58bb260e52cb344b106cc Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 14 Sep 2017 16:14:33 +0200 Subject: [PATCH] epoll: rename definition to _EPOLL_MAX_COMPLETION_COUNT --- src/epoll.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/epoll.c b/src/epoll.c index 6317596..f2e86f7 100644 --- a/src/epoll.c +++ b/src/epoll.c @@ -9,7 +9,7 @@ #include "util.h" #include "win.h" -#define _EP_COMPLETION_LIST_LENGTH 64 +#define _EPOLL_MAX_COMPLETION_COUNT 64 epoll_t epoll_create(void) { ep_port_t* port_info; @@ -127,14 +127,14 @@ int epoll_wait(epoll_t port_handle, } /* Compute how much overlapped entries can be dequeued at most. */ - if ((size_t) maxevents > _EP_COMPLETION_LIST_LENGTH) - maxevents = _EP_COMPLETION_LIST_LENGTH; + if ((size_t) maxevents > _EPOLL_MAX_COMPLETION_COUNT) + maxevents = _EPOLL_MAX_COMPLETION_COUNT; /* Dequeue completion packets until either at least one interesting event * has been discovered, or the timeout is reached. */ do { - OVERLAPPED_ENTRY completion_list[_EP_COMPLETION_LIST_LENGTH]; + OVERLAPPED_ENTRY completion_list[_EPOLL_MAX_COMPLETION_COUNT]; ULONG completion_count; ssize_t event_count;