Skip to content

Commit 2536325

Browse files
committed
style: fixed minor coding style issues found by ngx-releng.
1 parent 36bcdd9 commit 2536325

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/ngx_http_drizzle_handler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ ngx_http_drizzle_handler(ngx_http_request_t *r)
8787

8888
dd("XXX upstream already exists? %p", r->upstream);
8989

90-
#if defined(nginx_version) && \
91-
((nginx_version >= 7063 && nginx_version < 8000) \
90+
#if defined(nginx_version) && \
91+
((nginx_version >= 7063 && nginx_version < 8000) \
9292
|| nginx_version >= 8007)
9393

9494
dd("creating upstream.......");

src/ngx_http_drizzle_output.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020

2121
#define ngx_http_drizzle_module_header_key "X-Resty-DBD-Module"
2222

23-
#define ngx_http_drizzle_module_header_key_len \
23+
#define ngx_http_drizzle_module_header_key_len \
2424
(sizeof(ngx_http_drizzle_module_header_key) - 1)
2525

26-
#define ngx_http_drizzle_module_header_val \
27-
"ngx_drizzle " \
26+
#define ngx_http_drizzle_module_header_val \
27+
"ngx_drizzle " \
2828
ngx_http_drizzle_module_version_string
2929

30-
#define ngx_http_drizzle_module_header_val_len \
30+
#define ngx_http_drizzle_module_header_val_len \
3131
(sizeof(ngx_http_drizzle_module_header_val) - 1)
3232

33-
#define ngx_http_drizzle_module_header_key_len \
33+
#define ngx_http_drizzle_module_header_key_len \
3434
(sizeof(ngx_http_drizzle_module_header_key) - 1)
3535

3636

src/ngx_http_drizzle_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <ngx_core.h>
88
#include <ngx_http.h>
99

10-
#define ngx_http_drizzle_strcmp_const(a, b) \
10+
#define ngx_http_drizzle_strcmp_const(a, b) \
1111
ngx_strncmp(a, b, sizeof(b) - 1)
1212

1313
#ifndef ngx_copy_const_str

0 commit comments

Comments
 (0)