]> git.kaiwu.me - nginx.git/commitdiff
Style.
authorMaxim Dounin <mdounin@mdounin.ru>
Sat, 28 Jan 2023 02:20:23 +0000 (05:20 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sat, 28 Jan 2023 02:20:23 +0000 (05:20 +0300)
src/event/ngx_event_connectex.c
src/http/modules/ngx_http_flv_module.c
src/http/modules/ngx_http_static_module.c
src/http/ngx_http_file_cache.c

index 59ada74802a7ea0408be71aa019efc20436ae068..36b151424b63742388d8d74a1da90b3a0d841453 100644 (file)
@@ -127,8 +127,8 @@ void ngx_iocp_wait_events(int main)
     conn[0] = NULL;
 
     for ( ;; ) {
-        offset = (nevents == WSA_MAXIMUM_WAIT_EVENTS + 1) ? 1: 0;
-        timeout = (nevents == 1 && !first) ? 60000: INFINITE;
+        offset = (nevents == WSA_MAXIMUM_WAIT_EVENTS + 1) ? 1 : 0;
+        timeout = (nevents == 1 && !first) ? 60000 : INFINITE;
 
         n = WSAWaitForMultipleEvents(nevents - offset, events[offset],
                                      0, timeout, 0);
index cc06d538a794a2eb56e172b7186819d97a7ed67e..a7ee53cbb58b780512742ee9597e4ee445463458 100644 (file)
@@ -232,7 +232,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
     b->file_pos = start;
     b->file_last = of.size;
 
-    b->in_file = b->file_last ? 1: 0;
+    b->in_file = b->file_last ? 1 : 0;
     b->last_buf = (r == r->main) ? 1 : 0;
     b->last_in_chain = 1;
 
index e30565d4ee5c13f230567faedfc91823b3ded3f9..3e65edfdb1d3f35e1adfd0b379f89787fa7920c4 100644 (file)
@@ -265,8 +265,8 @@ ngx_http_static_handler(ngx_http_request_t *r)
     b->file_pos = 0;
     b->file_last = of.size;
 
-    b->in_file = b->file_last ? 1: 0;
-    b->last_buf = (r == r->main) ? 1: 0;
+    b->in_file = b->file_last ? 1 : 0;
+    b->last_buf = (r == r->main) ? 1 : 0;
     b->last_in_chain = 1;
 
     b->file->fd = of.fd;
index 4d2f6c42c70e69d686e361794b6223e562b01286..8db24f10379d5c734af2cf0c31fd14041f828237 100644 (file)
@@ -1600,8 +1600,8 @@ ngx_http_cache_send(ngx_http_request_t *r)
     b->file_pos = c->body_start;
     b->file_last = c->length;
 
-    b->in_file = (c->length - c->body_start) ? 1: 0;
-    b->last_buf = (r == r->main) ? 1: 0;
+    b->in_file = (c->length - c->body_start) ? 1 : 0;
+    b->last_buf = (r == r->main) ? 1 : 0;
     b->last_in_chain = 1;
 
     b->file->fd = c->file.fd;