Klaus Demo nginx / aa6936e
style fix Igor Sysoev 12 years ago
13 changed file(s) with 22 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
670670 }
671671
672672 } else if (ch == ' ' || ch == '\t' || ch == CR || ch == LF
673 || ch == ';' || ch == '{') {
673 || ch == ';' || ch == '{')
674 {
674675 last_space = 1;
675676 found = 1;
676677 }
18351835
18361836 p += sizeof(ngx_resolver_query_t);
18371837
1838 for (n = 0; n < 32; n += 8){
1838 for (n = 0; n < 32; n += 8) {
18391839 d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff);
18401840 *p = (u_char) (d - &p[1]);
18411841 p = d;
345345 len = a->nelts * sizeof(ngx_http_geo_range_t);
346346
347347 ctx.high->low[i].ranges = ngx_palloc(cf->pool, len);
348 if (ctx.high->low[i].ranges == NULL ){
348 if (ctx.high->low[i].ranges == NULL) {
349349 return NGX_CONF_ERROR;
350350 }
351351
446446 goto failed;
447447 }
448448
449 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
449 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
450450 goto failed;
451451 }
452452
373373 if (ngx_strcmp(value[0].data, "include") == 0) {
374374 file = value[1];
375375
376 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
376 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
377377 return NGX_CONF_ERROR;
378378 }
379379
430430
431431 while (ctx->in || ctx->buf) {
432432
433 if (ctx->buf == NULL ){
433 if (ctx->buf == NULL) {
434434 ctx->buf = ctx->in->buf;
435435 ctx->in = ctx->in->next;
436436 ctx->pos = ctx->buf->pos;
209209
210210 while (ctx->in || ctx->buf) {
211211
212 if (ctx->buf == NULL ){
212 if (ctx->buf == NULL) {
213213 ctx->buf = ctx->in->buf;
214214 ctx->in = ctx->in->next;
215215 ctx->pos = ctx->buf->pos;
267267
268268 if (ngx_http_xslt_add_chunk(r, ctx, cl->buf) != NGX_OK) {
269269
270 if (ctx->ctxt->myDoc){
270 if (ctx->ctxt->myDoc) {
271271
272272 #if (NGX_HTTP_XSLT_REUSE_DTD)
273273 ctx->ctxt->myDoc->extSubset = NULL;
271271 /* space* before URI */
272272 case sw_spaces_before_uri:
273273
274 if (ch == '/' ){
274 if (ch == '/') {
275275 r->uri_start = p;
276276 state = sw_after_slash_in_uri;
277277 break;
345345 #endif
346346
347347 plain.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len));
348 if (plain.data == NULL){
348 if (plain.data == NULL) {
349349 return NGX_ERROR;
350350 }
351351
402402 "mail auth login username: \"%V\"", &arg[n]);
403403
404404 s->login.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len));
405 if (s->login.data == NULL){
405 if (s->login.data == NULL) {
406406 return NGX_ERROR;
407407 }
408408
433433
434434 s->passwd.data = ngx_pnalloc(c->pool,
435435 ngx_base64_decoded_length(arg[0].len));
436 if (s->passwd.data == NULL){
436 if (s->passwd.data == NULL) {
437437 return NGX_ERROR;
438438 }
439439
493493 "mail auth cram-md5: \"%V\"", &arg[0]);
494494
495495 s->login.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[0].len));
496 if (s->login.data == NULL){
496 if (s->login.data == NULL) {
497497 return NGX_ERROR;
498498 }
499499
157157
158158 rev->ready = 0;
159159
160 if (n == NGX_ERROR){
160 if (n == NGX_ERROR) {
161161 c->read->error = 1;
162162 }
163163
246246
247247 rev->ready = 0;
248248
249 if (n == NGX_ERROR){
249 if (n == NGX_ERROR) {
250250 c->read->error = 1;
251251 }
252252
112112
113113 rev->ready = 0;
114114
115 if (n == NGX_ERROR){
115 if (n == NGX_ERROR) {
116116 rev->error = 1;
117117 }
118118
168168
169169 rev->ready = 0;
170170
171 if (n == NGX_ERROR){
171 if (n == NGX_ERROR) {
172172 rev->error = 1;
173173 }
174174
5959
6060 rev->ready = 0;
6161
62 if (n == NGX_ERROR){
62 if (n == NGX_ERROR) {
6363 rev->error = 1;
6464 }
6565
103103
104104 rev->ready = 0;
105105
106 if (n == NGX_ERROR){
106 if (n == NGX_ERROR) {
107107 rev->error = 1;
108108 }
109109
4242
4343 n = ngx_connection_error(c, err, "WSARecv() failed");
4444
45 if (n == NGX_ERROR){
45 if (n == NGX_ERROR) {
4646 rev->error = 1;
4747 }
4848
139139
140140 n = ngx_connection_error(c, err, "WSARecv() failed");
141141
142 if (n == NGX_ERROR){
142 if (n == NGX_ERROR) {
143143 rev->error = 1;
144144 }
145145