constness of key in ngx_hash_find_

Arvind Jayaprakash work at anomalizer.net
Sat Oct 18 22:43:05 MSD 2008


I was wondering if the "name" argument and also "hash" in the following
functions should be const

void *ngx_hash_find(ngx_hash_t *hash, ngx_uint_t key, u_char *name,
size_t len);
void *ngx_hash_find_wc_head(ngx_hash_wildcard_t *hwc, u_char *name,
size_t len);
void *ngx_hash_find_wc_tail(ngx_hash_wildcard_t *hwc, u_char *name,
size_t len);
void *ngx_hash_find_combined(ngx_hash_combined_t *hash, ngx_uint_t key,
    u_char *name, size_t len);


If that happens, then I can ask for similar changes in
ngx_http_variables{c,h}  :-)





More information about the nginx mailing list