comparison src/http/ngx_http_core_module.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 c72fe0a8d9b4
children fe30478341f0
comparison
equal deleted inserted replaced
1955:466fdc84c82d 1956:cb8c0c8e0c27
43 43
44 static char *ngx_http_core_server(ngx_conf_t *cf, ngx_command_t *cmd, 44 static char *ngx_http_core_server(ngx_conf_t *cf, ngx_command_t *cmd,
45 void *dummy); 45 void *dummy);
46 static char *ngx_http_core_location(ngx_conf_t *cf, ngx_command_t *cmd, 46 static char *ngx_http_core_location(ngx_conf_t *cf, ngx_command_t *cmd,
47 void *dummy); 47 void *dummy);
48 static int ngx_http_core_cmp_locations(const void *first, const void *second); 48 static ngx_int_t ngx_http_core_cmp_locations(const void *first,
49 const void *second);
49 50
50 static char *ngx_http_core_types(ngx_conf_t *cf, ngx_command_t *cmd, 51 static char *ngx_http_core_types(ngx_conf_t *cf, ngx_command_t *cmd,
51 void *conf); 52 void *conf);
52 static char *ngx_http_core_type(ngx_conf_t *cf, ngx_command_t *dummy, 53 static char *ngx_http_core_type(ngx_conf_t *cf, ngx_command_t *dummy,
53 void *conf); 54 void *conf);
2295 2296
2296 return rv; 2297 return rv;
2297 } 2298 }
2298 2299
2299 2300
2300 static int 2301 static ngx_int_t
2301 ngx_http_core_cmp_locations(const void *one, const void *two) 2302 ngx_http_core_cmp_locations(const void *one, const void *two)
2302 { 2303 {
2303 ngx_int_t rc; 2304 ngx_int_t rc;
2304 ngx_http_core_loc_conf_t *first, *second; 2305 ngx_http_core_loc_conf_t *first, *second;
2305 2306