diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-10 14:46:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-10 14:46:34 +0000 |
commit | ebc050dbba15f358eecdf573535ec31d1522fa97 (patch) | |
tree | 23fd1c67a4d0b85ae12b1ee26d0d8d94045cff9b | |
parent | 73c3121e6a89a1c02033813798bb283e3546614f (diff) | |
download | nginx-ebc050dbba15f358eecdf573535ec31d1522fa97.tar.gz nginx-ebc050dbba15f358eecdf573535ec31d1522fa97.zip |
change variable name
-rw-r--r-- | src/http/modules/ngx_http_memcached_module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c index 8710d10d3..f68be1e44 100644 --- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -597,13 +597,13 @@ ngx_http_memcached_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) static char * ngx_http_memcached_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { - ngx_http_memcached_loc_conf_t *lcf = conf; + ngx_http_memcached_loc_conf_t *mlcf = conf; ngx_str_t *value; ngx_url_t u; ngx_http_core_loc_conf_t *clcf; - if (lcf->upstream.upstream) { + if (mlcf->upstream.upstream) { return "is duplicate"; } @@ -614,8 +614,8 @@ ngx_http_memcached_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) u.url = value[1]; u.no_resolve = 1; - lcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); - if (lcf->upstream.upstream == NULL) { + mlcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); + if (mlcf->upstream.upstream == NULL) { return NGX_CONF_ERROR; } @@ -627,9 +627,9 @@ ngx_http_memcached_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) clcf->auto_redirect = 1; } - lcf->index = ngx_http_get_variable_index(cf, &ngx_http_memcached_key); + mlcf->index = ngx_http_get_variable_index(cf, &ngx_http_memcached_key); - if (lcf->index == NGX_ERROR) { + if (mlcf->index == NGX_ERROR) { return NGX_CONF_ERROR; } |