diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-05-21 14:09:12 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-05-21 14:09:12 +0000 |
commit | c02ed54c4fadfb9584175aad2739b7901e67406d (patch) | |
tree | 807a6c68f3bf193abc4328b92188a13c35185dc1 /src/mail/ngx_mail.c | |
parent | 35921283df0eae8ae7a3b9a583f2e9d99f31c19b (diff) | |
download | nginx-c02ed54c4fadfb9584175aad2739b7901e67406d.tar.gz nginx-c02ed54c4fadfb9584175aad2739b7901e67406d.zip |
use stable search where it is required
Diffstat (limited to 'src/mail/ngx_mail.c')
-rw-r--r-- | src/mail/ngx_mail.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mail/ngx_mail.c b/src/mail/ngx_mail.c index 56e9b04c1..ec74e6f03 100644 --- a/src/mail/ngx_mail.c +++ b/src/mail/ngx_mail.c @@ -11,8 +11,7 @@ static char *ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static int ngx_libc_cdecl ngx_mail_cmp_conf_in_addrs(const void *one, - const void *two); +static int ngx_mail_cmp_conf_in_addrs(const void *one, const void *two); ngx_uint_t ngx_mail_max_module; @@ -269,8 +268,8 @@ ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in_port = in_ports.elts; for (p = 0; p < in_ports.nelts; p++) { - ngx_qsort(in_port[p].addrs.elts, (size_t) in_port[p].addrs.nelts, - sizeof(ngx_mail_conf_in_addr_t), ngx_mail_cmp_conf_in_addrs); + ngx_sort(in_port[p].addrs.elts, (size_t) in_port[p].addrs.nelts, + sizeof(ngx_mail_conf_in_addr_t), ngx_mail_cmp_conf_in_addrs); in_addr = in_port[p].addrs.elts; last = in_port[p].addrs.nelts; @@ -387,7 +386,7 @@ ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } -static int ngx_libc_cdecl +static int ngx_mail_cmp_conf_in_addrs(const void *one, const void *two) { ngx_mail_conf_in_addr_t *first, *second; |