Mercurial > hg > nginx
comparison src/http/ngx_http_upstream_round_robin.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 | abbef7b5dab8 |
children | 2a92804f4109 50be8dd53d5e |
comparison
equal
deleted
inserted
replaced
1955:466fdc84c82d | 1956:cb8c0c8e0c27 |
---|---|
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 #include <ngx_http.h> | 9 #include <ngx_http.h> |
10 | 10 |
11 | 11 |
12 static int ngx_http_upstream_cmp_servers(const void *one, const void *two); | 12 static ngx_int_t ngx_http_upstream_cmp_servers(const void *one, |
13 const void *two); | |
13 static ngx_uint_t | 14 static ngx_uint_t |
14 ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers); | 15 ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers); |
15 | 16 |
16 | 17 |
17 ngx_int_t | 18 ngx_int_t |
183 | 184 |
184 return NGX_OK; | 185 return NGX_OK; |
185 } | 186 } |
186 | 187 |
187 | 188 |
188 static int | 189 static ngx_int_t |
189 ngx_http_upstream_cmp_servers(const void *one, const void *two) | 190 ngx_http_upstream_cmp_servers(const void *one, const void *two) |
190 { | 191 { |
191 ngx_http_upstream_rr_peer_t *first, *second; | 192 ngx_http_upstream_rr_peer_t *first, *second; |
192 | 193 |
193 first = (ngx_http_upstream_rr_peer_t *) one; | 194 first = (ngx_http_upstream_rr_peer_t *) one; |