comparison src/http/modules/ngx_http_gzip_filter_module.c @ 2290:1a7567e5b988

change int to size_t
author Igor Sysoev <igor@sysoev.ru>
date Thu, 06 Nov 2008 19:11:19 +0000
parents c28e47fb834c
children e9a1cddf2aaa
comparison
equal deleted inserted replaced
2289:857c161d2768 2290:1a7567e5b988
868 868
869 869
870 static char * 870 static char *
871 ngx_http_gzip_window(ngx_conf_t *cf, void *post, void *data) 871 ngx_http_gzip_window(ngx_conf_t *cf, void *post, void *data)
872 { 872 {
873 int *np = data; 873 size_t *np = data;
874 874
875 int wbits, wsize; 875 size_t wbits, wsize;
876 876
877 wbits = 15; 877 wbits = 15;
878 878
879 for (wsize = 32 * 1024; wsize > 256; wsize >>= 1) { 879 for (wsize = 32 * 1024; wsize > 256; wsize >>= 1) {
880 880
892 892
893 893
894 static char * 894 static char *
895 ngx_http_gzip_hash(ngx_conf_t *cf, void *post, void *data) 895 ngx_http_gzip_hash(ngx_conf_t *cf, void *post, void *data)
896 { 896 {
897 int *np = data; 897 size_t *np = data;
898 898
899 int memlevel, hsize; 899 size_t memlevel, hsize;
900 900
901 memlevel = 9; 901 memlevel = 9;
902 902
903 for (hsize = 128 * 1024; hsize > 256; hsize >>= 1) { 903 for (hsize = 128 * 1024; hsize > 256; hsize >>= 1) {
904 904