Welcome! Log In Create A New Profile

Advanced

[nginx] Style.

Sergey Kandaurov
February 03, 2023 06:14AM
details: https://hg.nginx.org/nginx/rev/1c3b78d7cdc9
branches:
changeset: 8123:1c3b78d7cdc9
user: Maxim Dounin <mdounin@mdounin.ru>
date: Sat Jan 28 05:20:23 2023 +0300
description:
Style.

diffstat:

src/event/ngx_event_connectex.c | 4 ++--
src/http/modules/ngx_http_flv_module.c | 2 +-
src/http/modules/ngx_http_static_module.c | 4 ++--
src/http/ngx_http_file_cache.c | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 106328a70f4e -r 1c3b78d7cdc9 src/event/ngx_event_connectex.c
--- a/src/event/ngx_event_connectex.c Sat Jan 28 01:29:45 2023 +0300
+++ b/src/event/ngx_event_connectex.c Sat Jan 28 05:20:23 2023 +0300
@@ -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);
diff -r 106328a70f4e -r 1c3b78d7cdc9 src/http/modules/ngx_http_flv_module.c
--- a/src/http/modules/ngx_http_flv_module.c Sat Jan 28 01:29:45 2023 +0300
+++ b/src/http/modules/ngx_http_flv_module.c Sat Jan 28 05:20:23 2023 +0300
@@ -232,7 +232,7 @@ ngx_http_flv_handler(ngx_http_request_t
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;

diff -r 106328a70f4e -r 1c3b78d7cdc9 src/http/modules/ngx_http_static_module.c
--- a/src/http/modules/ngx_http_static_module.c Sat Jan 28 01:29:45 2023 +0300
+++ b/src/http/modules/ngx_http_static_module.c Sat Jan 28 05:20:23 2023 +0300
@@ -265,8 +265,8 @@ ngx_http_static_handler(ngx_http_request
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;
diff -r 106328a70f4e -r 1c3b78d7cdc9 src/http/ngx_http_file_cache.c
--- a/src/http/ngx_http_file_cache.c Sat Jan 28 01:29:45 2023 +0300
+++ b/src/http/ngx_http_file_cache.c Sat Jan 28 05:20:23 2023 +0300
@@ -1600,8 +1600,8 @@ ngx_http_cache_send(ngx_http_request_t *
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;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Style.

Sergey Kandaurov 509 February 03, 2023 06:14AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready