[nginx] HTTP/2: style.

Valentin Bartenev vbart at nginx.com
Thu Jun 23 14:17:04 UTC 2016


details:   http://hg.nginx.org/nginx/rev/6f69e3c0f780
branches:  
changeset: 6600:6f69e3c0f780
user:      Piotr Sikora <piotrsikora at google.com>
date:      Wed Jun 22 13:47:54 2016 -0700
description:
HTTP/2: style.

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diffstat:

 src/http/v2/ngx_http_v2_filter_module.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 191e23214dfb -r 6f69e3c0f780 src/http/v2/ngx_http_v2_filter_module.c
--- a/src/http/v2/ngx_http_v2_filter_module.c	Wed Jun 22 11:50:02 2016 +0300
+++ b/src/http/v2/ngx_http_v2_filter_module.c	Wed Jun 22 13:47:54 2016 -0700
@@ -974,12 +974,11 @@ static ngx_http_v2_out_frame_t *
 ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
     size_t len, ngx_chain_t *first, ngx_chain_t *last)
 {
-    u_char                      flags;
-    ngx_buf_t                  *buf;
-    ngx_chain_t                *cl;
+    u_char                    flags;
+    ngx_buf_t                *buf;
+    ngx_chain_t              *cl;
     ngx_http_v2_out_frame_t  *frame;
 
-
     frame = stream->free_frames;
 
     if (frame) {
@@ -1007,7 +1006,7 @@ ngx_http_v2_filter_get_data_frame(ngx_ht
 
     buf = cl->buf;
 
-    if (!buf->start) {
+    if (buf->start == NULL) {
         buf->start = ngx_palloc(stream->request->pool,
                                 NGX_HTTP_V2_FRAME_HEADER_SIZE);
         if (buf->start == NULL) {
@@ -1182,7 +1181,6 @@ ngx_http_v2_data_frame_handler(ngx_http_
     ngx_http_v2_stream_t  *stream;
 
     stream = frame->stream;
-
     cl = frame->first;
 
     if (cl->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_module) {



More information about the nginx-devel mailing list