summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-05-21 14:09:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-05-21 14:09:12 +0000
commitc02ed54c4fadfb9584175aad2739b7901e67406d (patch)
tree807a6c68f3bf193abc4328b92188a13c35185dc1 /src/http/ngx_http_core_module.c
parent35921283df0eae8ae7a3b9a583f2e9d99f31c19b (diff)
downloadnginx-c02ed54c4fadfb9584175aad2739b7901e67406d.tar.gz
nginx-c02ed54c4fadfb9584175aad2739b7901e67406d.tar.bz2
use stable search where it is required
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index c2d980b27..2334f6daa 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -45,8 +45,7 @@ static char *ngx_http_core_server(ngx_conf_t *cf, ngx_command_t *cmd,
void *dummy);
static char *ngx_http_core_location(ngx_conf_t *cf, ngx_command_t *cmd,
void *dummy);
-static int ngx_libc_cdecl ngx_http_core_cmp_locations(const void *first,
- const void *second);
+static int ngx_http_core_cmp_locations(const void *first, const void *second);
static char *ngx_http_core_types(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf);
@@ -1642,8 +1641,8 @@ ngx_http_core_server(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy)
return rv;
}
- ngx_qsort(cscf->locations.elts, (size_t) cscf->locations.nelts,
- sizeof(ngx_http_core_loc_conf_t *), ngx_http_core_cmp_locations);
+ ngx_sort(cscf->locations.elts, (size_t) cscf->locations.nelts,
+ sizeof(ngx_http_core_loc_conf_t *), ngx_http_core_cmp_locations);
return rv;
}
@@ -1814,14 +1813,14 @@ ngx_http_core_location(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy)
return rv;
}
- ngx_qsort(clcf->locations.elts, (size_t) clcf->locations.nelts,
- sizeof(ngx_http_core_loc_conf_t *), ngx_http_core_cmp_locations);
+ ngx_sort(clcf->locations.elts, (size_t) clcf->locations.nelts,
+ sizeof(ngx_http_core_loc_conf_t *), ngx_http_core_cmp_locations);
return rv;
}
-static int ngx_libc_cdecl
+static int
ngx_http_core_cmp_locations(const void *one, const void *two)
{
ngx_int_t rc;