0.6.27 compile bug - ngx_create_hashed_filename

dchapiesky at juno.com dchapiesky at juno.com
Wed Mar 12 23:58:41 MSK 2008


Hello...
Compiling on 0.6.27 on Kubuntu i686 Linux 2.66.22 gcc 4.1.3
I get...
../http/ngx_http_file_cache.c: In function ngx_http_file_cache_get:
../http/ngx_http_file_cache.c:60: warning: passing argument 1 of ngx_create_hashed_filename from incompatible pointer type
../http/ngx_http_file_cache.c:60: warning: passing argument 2 of ngx_create_hashed_filename from incompatible pointer type
../http/ngx_http_file_cache.c:60: error: too few arguments to function ngx_create_hashed_filename
Did a find on ngx_create_hashed_filename and have:
../core/ngx_file.c(73): ngx_create_hashed_filename(path, file->name.data, file->name.len);
../core/ngx_file.c(123):ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len)
../http/ngx_http_file_cache.c(60): ngx_create_hashed_filename(&c->file, ctx->path);
../core/ngx_file.h(99):void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len);
The offending line in ngx_http_file_cache.c does seem to need 3 args... in addition it seems that the call should be
ngx_create_hashed_filename(ctx->path, c->file.name.data, c->file.name.len);
Your opinions are greatly appreciated...
Daniel

_____________________________________________________________
New tax software helps the numbers add up. Click now!
http://thirdpartyoffers.juno.com/TGL2111/fc/Ioyw6iifbbsY2MSeDpzVRK9ftWscm4KHkC6R9LTYB0C7KWPkgtOyK1/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080312/121b1efd/attachment.html>


More information about the nginx mailing list