summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_epoll_engine.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-04-04 18:13:05 +0300
committerValentin Bartenev <vbart@nginx.com>2018-04-04 18:13:05 +0300
commit0665896a5593fb41c92cbf164182a058ee40518c (patch)
treed657fac84d35aa3f605d25dc8e0a3c165db93b30 /src/nxt_epoll_engine.c
parent43ba7aad6cadfab2eb45f09e894dec072c93e6cd (diff)
downloadunit-0665896a5593fb41c92cbf164182a058ee40518c.tar.gz
unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.bz2
Style: capitalized letters in hexadecimal literals.
Diffstat (limited to 'src/nxt_epoll_engine.c')
-rw-r--r--src/nxt_epoll_engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_epoll_engine.c b/src/nxt_epoll_engine.c
index 15aa4481..c6ce145d 100644
--- a/src/nxt_epoll_engine.c
+++ b/src/nxt_epoll_engine.c
@@ -824,14 +824,14 @@ nxt_epoll_eventfd_handler(nxt_task_t *task, void *obj, void *data)
/*
* The maximum value after write() to a eventfd() descriptor will
- * block or return EAGAIN is 0xfffffffffffffffe, so the descriptor
+ * block or return EAGAIN is 0xFFFFFFFFFFFFFFFE, so the descriptor
* can be read once per many notifications, for example, once per
* 2^32-2 noticifcations. Since the eventfd() file descriptor is
* always registered in EPOLLET mode, epoll returns event about
* only the latest write() to the descriptor.
*/
- if (engine->u.epoll.neventfd++ >= 0xfffffffe) {
+ if (engine->u.epoll.neventfd++ >= 0xFFFFFFFE) {
engine->u.epoll.neventfd = 0;
n = read(engine->u.epoll.eventfd.fd, &events, sizeof(uint64_t));