Mercurial > hg > nginx
comparison src/http/modules/ngx_http_geo_module.c @ 5124:5482671df278
Use NGX_DEFAULT_POOL_SIZE macro where appropriate.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 21 Mar 2013 16:03:24 +0000 |
parents | f7fe817c92a2 |
children | f1a91825730a |
comparison
equal
deleted
inserted
replaced
5123:4fef8ed52389 | 5124:5482671df278 |
---|---|
428 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE); | 428 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE); |
429 if (var == NULL) { | 429 if (var == NULL) { |
430 return NGX_CONF_ERROR; | 430 return NGX_CONF_ERROR; |
431 } | 431 } |
432 | 432 |
433 pool = ngx_create_pool(16384, cf->log); | 433 pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); |
434 if (pool == NULL) { | 434 if (pool == NULL) { |
435 return NGX_CONF_ERROR; | 435 return NGX_CONF_ERROR; |
436 } | 436 } |
437 | 437 |
438 ngx_memzero(&ctx, sizeof(ngx_http_geo_conf_ctx_t)); | 438 ngx_memzero(&ctx, sizeof(ngx_http_geo_conf_ctx_t)); |
439 | 439 |
440 ctx.temp_pool = ngx_create_pool(16384, cf->log); | 440 ctx.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); |
441 if (ctx.temp_pool == NULL) { | 441 if (ctx.temp_pool == NULL) { |
442 return NGX_CONF_ERROR; | 442 return NGX_CONF_ERROR; |
443 } | 443 } |
444 | 444 |
445 ngx_rbtree_init(&ctx.rbtree, &ctx.sentinel, ngx_str_rbtree_insert_value); | 445 ngx_rbtree_init(&ctx.rbtree, &ctx.sentinel, ngx_str_rbtree_insert_value); |