comparison src/http/ngx_http_core_module.h @ 92:19cc647ecd91

nginx-0.0.1-2003-05-20-19:37:55 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 20 May 2003 15:37:55 +0000
parents 637625a2acdb
children 738fe44c70d5
comparison
equal deleted inserted replaced
91:637625a2acdb 92:19cc647ecd91
71 71
72 #define NGX_HTTP_TYPES_HASH_PRIME 13 72 #define NGX_HTTP_TYPES_HASH_PRIME 13
73 73
74 #define ngx_http_types_hash_key(key, ext) \ 74 #define ngx_http_types_hash_key(key, ext) \
75 { \ 75 { \
76 uint n; \ 76 u_int n; \
77 for (key = 0, n = 0; n < ext.len; n++) { \ 77 for (key = 0, n = 0; n < ext.len; n++) { \
78 key += ext.data[n]; \ 78 key += ext.data[n]; \
79 } \ 79 } \
80 key %= NGX_HTTP_TYPES_HASH_PRIME; \ 80 key %= NGX_HTTP_TYPES_HASH_PRIME; \
81 } 81 }