diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-18 21:04:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-18 21:04:31 +0000 |
commit | f5a359bdec93bb4dbe38c8b13fff957a71b0f896 (patch) | |
tree | c5ba8fb434757b0e584fdf73ec234166ccc49d77 /src/http/modules/ngx_http_dav_module.c | |
parent | da7281a6daef3a48ea7dd9574dc80234b9b86308 (diff) | |
download | nginx-f5a359bdec93bb4dbe38c8b13fff957a71b0f896.tar.gz nginx-f5a359bdec93bb4dbe38c8b13fff957a71b0f896.zip |
add size, access, and mtime to ngx_walk_tree()
Diffstat (limited to 'src/http/modules/ngx_http_dav_module.c')
-rw-r--r-- | src/http/modules/ngx_http_dav_module.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c index 0d3c912b9..ad673f5a0 100644 --- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -19,8 +19,7 @@ typedef struct { static ngx_int_t ngx_http_dav_handler(ngx_http_request_t *r); -static ngx_int_t ngx_http_dav_no_init(ngx_tree_ctx_t *ctx, - ngx_tree_ctx_t *prev); +static ngx_int_t ngx_http_dav_no_init(void *ctx, void *prev); static ngx_int_t ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path); static ngx_int_t ngx_http_dav_delete_dir(ngx_tree_ctx_t *ctx, ngx_str_t *path); static ngx_int_t ngx_http_dav_delete_file(ngx_tree_ctx_t *ctx, ngx_str_t *path); @@ -190,7 +189,7 @@ ngx_http_dav_handler(ngx_http_request_t *r) tree.post_tree_handler = ngx_http_dav_delete_dir; tree.spec_handler = ngx_http_dav_delete_file; tree.data = NULL; - tree.size = 0; + tree.alloc = 0; tree.log = r->connection->log; if (ngx_walk_tree(&tree, &path) == NGX_OK) { @@ -270,7 +269,7 @@ ngx_http_dav_handler(ngx_http_request_t *r) static ngx_int_t -ngx_http_dav_no_init(ngx_tree_ctx_t *ctx, ngx_tree_ctx_t *prev) +ngx_http_dav_no_init(void *ctx, void *prev) { return NGX_OK; } |