style fix
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index 20d9af9..83c1073 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -671,7 +671,8 @@
}
} else if (ch == ' ' || ch == '\t' || ch == CR || ch == LF
- || ch == ';' || ch == '{') {
+ || ch == ';' || ch == '{')
+ {
last_space = 1;
found = 1;
}
diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c
index a2b5570..1df86fa 100644
--- a/src/core/ngx_resolver.c
+++ b/src/core/ngx_resolver.c
@@ -1836,7 +1836,7 @@
p += sizeof(ngx_resolver_query_t);
- for (n = 0; n < 32; n += 8){
+ for (n = 0; n < 32; n += 8) {
d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff);
*p = (u_char) (d - &p[1]);
p = d;
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 913a1d9..40c11f2 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -346,7 +346,7 @@
len = a->nelts * sizeof(ngx_http_geo_range_t);
ctx.high->low[i].ranges = ngx_palloc(cf->pool, len);
- if (ctx.high->low[i].ranges == NULL ){
+ if (ctx.high->low[i].ranges == NULL) {
return NGX_CONF_ERROR;
}
@@ -447,7 +447,7 @@
goto failed;
}
- if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
+ if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
goto failed;
}
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index abdae0d..fe3fa77 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -374,7 +374,7 @@
if (ngx_strcmp(value[0].data, "include") == 0) {
file = value[1];
- if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
+ if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
return NGX_CONF_ERROR;
}
diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c
index b994711..45626c6 100644
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -431,7 +431,7 @@
while (ctx->in || ctx->buf) {
- if (ctx->buf == NULL ){
+ if (ctx->buf == NULL) {
ctx->buf = ctx->in->buf;
ctx->in = ctx->in->next;
ctx->pos = ctx->buf->pos;
diff --git a/src/http/modules/ngx_http_sub_filter_module.c b/src/http/modules/ngx_http_sub_filter_module.c
index fe4d927..d12ed8f 100644
--- a/src/http/modules/ngx_http_sub_filter_module.c
+++ b/src/http/modules/ngx_http_sub_filter_module.c
@@ -210,7 +210,7 @@
while (ctx->in || ctx->buf) {
- if (ctx->buf == NULL ){
+ if (ctx->buf == NULL) {
ctx->buf = ctx->in->buf;
ctx->in = ctx->in->next;
ctx->pos = ctx->buf->pos;
diff --git a/src/http/modules/ngx_http_xslt_filter_module.c b/src/http/modules/ngx_http_xslt_filter_module.c
index a06b26c..a5c3da4 100644
--- a/src/http/modules/ngx_http_xslt_filter_module.c
+++ b/src/http/modules/ngx_http_xslt_filter_module.c
@@ -268,7 +268,7 @@
if (ngx_http_xslt_add_chunk(r, ctx, cl->buf) != NGX_OK) {
- if (ctx->ctxt->myDoc){
+ if (ctx->ctxt->myDoc) {
#if (NGX_HTTP_XSLT_REUSE_DTD)
ctx->ctxt->myDoc->extSubset = NULL;
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index f5be2f0..949006b 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -272,7 +272,7 @@
/* space* before URI */
case sw_spaces_before_uri:
- if (ch == '/' ){
+ if (ch == '/') {
r->uri_start = p;
state = sw_after_slash_in_uri;
break;
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c
index 9cc6a07..0e37daf 100644
--- a/src/mail/ngx_mail_handler.c
+++ b/src/mail/ngx_mail_handler.c
@@ -346,7 +346,7 @@
#endif
plain.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len));
- if (plain.data == NULL){
+ if (plain.data == NULL) {
return NGX_ERROR;
}
@@ -403,7 +403,7 @@
"mail auth login username: \"%V\"", &arg[n]);
s->login.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len));
- if (s->login.data == NULL){
+ if (s->login.data == NULL) {
return NGX_ERROR;
}
@@ -434,7 +434,7 @@
s->passwd.data = ngx_pnalloc(c->pool,
ngx_base64_decoded_length(arg[0].len));
- if (s->passwd.data == NULL){
+ if (s->passwd.data == NULL) {
return NGX_ERROR;
}
@@ -494,7 +494,7 @@
"mail auth cram-md5: \"%V\"", &arg[0]);
s->login.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[0].len));
- if (s->login.data == NULL){
+ if (s->login.data == NULL) {
return NGX_ERROR;
}
diff --git a/src/os/unix/ngx_readv_chain.c b/src/os/unix/ngx_readv_chain.c
index f2dd82c..b65a0d7 100644
--- a/src/os/unix/ngx_readv_chain.c
+++ b/src/os/unix/ngx_readv_chain.c
@@ -158,7 +158,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
c->read->error = 1;
}
@@ -247,7 +247,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
c->read->error = 1;
}
diff --git a/src/os/unix/ngx_recv.c b/src/os/unix/ngx_recv.c
index f4d6a2b..316e051 100644
--- a/src/os/unix/ngx_recv.c
+++ b/src/os/unix/ngx_recv.c
@@ -113,7 +113,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}
@@ -169,7 +169,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}
diff --git a/src/os/unix/ngx_udp_recv.c b/src/os/unix/ngx_udp_recv.c
index 25f0738..fdcd7fa 100644
--- a/src/os/unix/ngx_udp_recv.c
+++ b/src/os/unix/ngx_udp_recv.c
@@ -60,7 +60,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}
@@ -104,7 +104,7 @@
rev->ready = 0;
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}
diff --git a/src/os/win32/ngx_wsarecv.c b/src/os/win32/ngx_wsarecv.c
index 314de6e..032565a 100644
--- a/src/os/win32/ngx_wsarecv.c
+++ b/src/os/win32/ngx_wsarecv.c
@@ -43,7 +43,7 @@
n = ngx_connection_error(c, err, "WSARecv() failed");
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}
@@ -140,7 +140,7 @@
n = ngx_connection_error(c, err, "WSARecv() failed");
- if (n == NGX_ERROR){
+ if (n == NGX_ERROR) {
rev->error = 1;
}