Mercurial > hg > nginx
comparison src/mail/ngx_mail.c @ 1956:cb8c0c8e0c27
use ngx_int_t in ngx_sort() callback
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 24 Mar 2008 13:04:02 +0000 |
parents | f69493e8faab |
children | 2a92804f4109 |
comparison
equal
deleted
inserted
replaced
1955:466fdc84c82d | 1956:cb8c0c8e0c27 |
---|---|
9 #include <ngx_event.h> | 9 #include <ngx_event.h> |
10 #include <ngx_mail.h> | 10 #include <ngx_mail.h> |
11 | 11 |
12 | 12 |
13 static char *ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 13 static char *ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
14 static int ngx_mail_cmp_conf_in_addrs(const void *one, const void *two); | 14 static ngx_int_t ngx_mail_cmp_conf_in_addrs(const void *one, const void *two); |
15 | 15 |
16 | 16 |
17 ngx_uint_t ngx_mail_max_module; | 17 ngx_uint_t ngx_mail_max_module; |
18 | 18 |
19 | 19 |
386 | 386 |
387 return NGX_CONF_OK; | 387 return NGX_CONF_OK; |
388 } | 388 } |
389 | 389 |
390 | 390 |
391 static int | 391 static ngx_int_t |
392 ngx_mail_cmp_conf_in_addrs(const void *one, const void *two) | 392 ngx_mail_cmp_conf_in_addrs(const void *one, const void *two) |
393 { | 393 { |
394 ngx_mail_conf_in_addr_t *first, *second; | 394 ngx_mail_conf_in_addr_t *first, *second; |
395 | 395 |
396 first = (ngx_mail_conf_in_addr_t *) one; | 396 first = (ngx_mail_conf_in_addr_t *) one; |