[nginx] Events: simplified ngx_event_aio_t definition.

Ruslan Ermilov ru at nginx.com
Tue Mar 3 15:10:19 UTC 2015


details:   http://hg.nginx.org/nginx/rev/ea58dfd07782
branches:  
changeset: 5998:ea58dfd07782
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue Mar 03 18:09:13 2015 +0300
description:
Events: simplified ngx_event_aio_t definition.

No functional changes.

diffstat:

 src/event/ngx_event.h |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (17 lines):

diff -r c901f2764c27 -r ea58dfd07782 src/event/ngx_event.h
--- a/src/event/ngx_event.h	Fri Feb 27 19:19:08 2015 +0300
+++ b/src/event/ngx_event.h	Tue Mar 03 18:09:13 2015 +0300
@@ -176,11 +176,9 @@ struct ngx_event_aio_s {
 
 #if (NGX_HAVE_EVENTFD)
     int64_t                    res;
-#if (NGX_TEST_BUILD_EPOLL)
-    ngx_err_t                  err;
-    size_t                     nbytes;
 #endif
-#else
+
+#if !(NGX_HAVE_EVENTFD) || (NGX_TEST_BUILD_EPOLL)
     ngx_err_t                  err;
     size_t                     nbytes;
 #endif



More information about the nginx-devel mailing list