summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-16 15:27:31 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-16 15:27:31 +0000
commit32075f53e94183c647da58d4d832a58725d36c49 (patch)
tree7951913c6b91189bcd7d152e625469968fa07ccb /src/http/modules
parent630ad0c7b17b4e20d978706d3884995481f28b3c (diff)
downloadnginx-32075f53e94183c647da58d4d832a58725d36c49.tar.gz
nginx-32075f53e94183c647da58d4d832a58725d36c49.tar.bz2
nginx-0.0.3-2004-04-16-19:27:31 import
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_gzip_filter.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter.c b/src/http/modules/ngx_http_gzip_filter.c
index 2034595d0..8c22ac629 100644
--- a/src/http/modules/ngx_http_gzip_filter.c
+++ b/src/http/modules/ngx_http_gzip_filter.c
@@ -16,8 +16,8 @@ typedef struct {
ngx_uint_t proxied;
int level;
- int wbits;
- int memlevel;
+ size_t wbits;
+ size_t memlevel;
} ngx_http_gzip_conf_t;
@@ -803,8 +803,9 @@ static char *ngx_http_gzip_merge_conf(ngx_conf_t *cf,
NGX_HTTP_GZIP_PROXIED_OFF);
ngx_conf_merge_value(conf->level, prev->level, 1);
- ngx_conf_merge_value(conf->wbits, prev->wbits, MAX_WBITS);
- ngx_conf_merge_value(conf->memlevel, prev->memlevel, MAX_MEM_LEVEL - 1);
+ ngx_conf_merge_size_value(conf->wbits, prev->wbits, MAX_WBITS);
+ ngx_conf_merge_size_value(conf->memlevel, prev->memlevel,
+ MAX_MEM_LEVEL - 1);
ngx_conf_merge_value(conf->no_buffer, prev->no_buffer, 0);
return NGX_CONF_OK;