comparison src/http/ngx_http_file_cache.c @ 5317:f1a91825730a

Replaced ngx_conf_full_name() with ngx_get_full_name(). The ngx_get_full_name() function takes more readable arguments list.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 06 Aug 2013 19:58:40 +0400
parents 711fa02afae8
children 314c3d7cc3a5
comparison
equal deleted inserted replaced
5316:12dd27b74117 5317:f1a91825730a
1624 1624
1625 if (cache->path->name.data[cache->path->name.len - 1] == '/') { 1625 if (cache->path->name.data[cache->path->name.len - 1] == '/') {
1626 cache->path->name.len--; 1626 cache->path->name.len--;
1627 } 1627 }
1628 1628
1629 if (ngx_conf_full_name(cf->cycle, &cache->path->name, 0) != NGX_OK) { 1629 if (ngx_get_full_name(cf->pool, &cf->cycle->prefix, &cache->path->name)
1630 != NGX_OK)
1631 {
1630 return NGX_CONF_ERROR; 1632 return NGX_CONF_ERROR;
1631 } 1633 }
1632 1634
1633 for (i = 2; i < cf->args->nelts; i++) { 1635 for (i = 2; i < cf->args->nelts; i++) {
1634 1636