summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-01-12 21:58:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-01-12 21:58:02 +0000
commitec3cabdcd959952905a6429637684a03f81de4b5 (patch)
tree9d546c6d0bec6a0876f453d77d884c52a0e81e06 /src/http/modules
parenta1e82cca224fd827ca806dddaebc31d403c909ac (diff)
downloadnginx-ec3cabdcd959952905a6429637684a03f81de4b5.tar.gz
nginx-ec3cabdcd959952905a6429637684a03f81de4b5.tar.bz2
ngx_strn2cmp() > ngx_memn2cmp()
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_limit_zone_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_limit_zone_module.c b/src/http/modules/ngx_http_limit_zone_module.c
index fb4b6dafb..416a4ebf4 100644
--- a/src/http/modules/ngx_http_limit_zone_module.c
+++ b/src/http/modules/ngx_http_limit_zone_module.c
@@ -179,7 +179,7 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
do {
lz = (ngx_http_limit_zone_node_t *) &node->color;
- rc = ngx_strn2cmp(lz->data, vv->data, (size_t) lz->len, len);
+ rc = ngx_memn2cmp(lz->data, vv->data, (size_t) lz->len, len);
if (rc == 0) {
if ((ngx_uint_t) lz->conn < lzcf->conn) {
@@ -266,7 +266,7 @@ ngx_http_limit_zone_rbtree_insert_value(ngx_rbtree_node_t *temp,
lzn = (ngx_http_limit_zone_node_t *) &node->color;
lznt = (ngx_http_limit_zone_node_t *) &temp->color;
- if (ngx_strn2cmp(lzn->data, lznt->data, lzn->len, lznt->len) < 0) {
+ if (ngx_memn2cmp(lzn->data, lznt->data, lzn->len, lznt->len) < 0) {
if (temp->left == sentinel) {
temp->left = node;