comparison src/http/modules/ngx_http_limit_conn_module.c @ 5861:1e6bf87a7289

Limit conn: aligned field names in structures. No functional changes.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 24 Sep 2014 21:55:19 +0400
parents c9787372f16d
children f01ab2dbcfdc
comparison
equal deleted inserted replaced
5860:c9787372f16d 5861:1e6bf87a7289
9 #include <ngx_core.h> 9 #include <ngx_core.h>
10 #include <ngx_http.h> 10 #include <ngx_http.h>
11 11
12 12
13 typedef struct { 13 typedef struct {
14 u_char color; 14 u_char color;
15 u_char len; 15 u_char len;
16 u_short conn; 16 u_short conn;
17 u_char data[1]; 17 u_char data[1];
18 } ngx_http_limit_conn_node_t; 18 } ngx_http_limit_conn_node_t;
19 19
20 20
21 typedef struct { 21 typedef struct {
22 ngx_shm_zone_t *shm_zone; 22 ngx_shm_zone_t *shm_zone;
23 ngx_rbtree_node_t *node; 23 ngx_rbtree_node_t *node;
24 } ngx_http_limit_conn_cleanup_t; 24 } ngx_http_limit_conn_cleanup_t;
25 25
26 26
27 typedef struct { 27 typedef struct {
28 ngx_rbtree_t *rbtree; 28 ngx_rbtree_t *rbtree;
29 ngx_http_complex_value_t key; 29 ngx_http_complex_value_t key;
30 } ngx_http_limit_conn_ctx_t; 30 } ngx_http_limit_conn_ctx_t;
31 31
32 32
33 typedef struct { 33 typedef struct {
34 ngx_shm_zone_t *shm_zone; 34 ngx_shm_zone_t *shm_zone;
35 ngx_uint_t conn; 35 ngx_uint_t conn;
36 } ngx_http_limit_conn_limit_t; 36 } ngx_http_limit_conn_limit_t;
37 37
38 38
39 typedef struct { 39 typedef struct {
40 ngx_array_t limits; 40 ngx_array_t limits;
41 ngx_uint_t log_level; 41 ngx_uint_t log_level;
42 ngx_uint_t status_code; 42 ngx_uint_t status_code;
43 } ngx_http_limit_conn_conf_t; 43 } ngx_http_limit_conn_conf_t;
44 44
45 45
46 static ngx_rbtree_node_t *ngx_http_limit_conn_lookup(ngx_rbtree_t *rbtree, 46 static ngx_rbtree_node_t *ngx_http_limit_conn_lookup(ngx_rbtree_t *rbtree,
47 ngx_str_t *key, uint32_t hash); 47 ngx_str_t *key, uint32_t hash);