aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2015-12-03 20:06:45 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2015-12-03 20:06:45 +0300
commit699459347832fc57ab8ba9aefa11d3b2ec5385b0 (patch)
tree4c83a6987bf7a16722d7559c32f10de06003d845 /src/http/ngx_http_core_module.c
parentaf4e89b9a18a6bfece623d31a8b4cc6160f847cd (diff)
downloadnginx-699459347832fc57ab8ba9aefa11d3b2ec5385b0.tar.gz
nginx-699459347832fc57ab8ba9aefa11d3b2ec5385b0.zip
Style: NGX_PTR_SIZE replaced with sizeof(void *).
The NGX_PTR_SIZE macro is only needed in preprocessor directives where it's not possible to use sizeof().
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index acb9c909e..4b8dd4c90 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3503,7 +3503,7 @@ ngx_http_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
/* TODO: it does not merge, it inits only */
ngx_conf_merge_size_value(conf->connection_pool_size,
- prev->connection_pool_size, NGX_PTR_SIZE * 64);
+ prev->connection_pool_size, 64 * sizeof(void *));
ngx_conf_merge_size_value(conf->request_pool_size,
prev->request_pool_size, 4096);
ngx_conf_merge_msec_value(conf->client_header_timeout,