summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http_route.c14
-rw-r--r--src/nxt_upstream.h2
-rw-r--r--src/nxt_upstream_round_robin.c2
-rw-r--r--src/python/nxt_python.h2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c
index 98ff5404..852f5739 100644
--- a/src/nxt_http_route.c
+++ b/src/nxt_http_route.c
@@ -103,13 +103,13 @@ struct nxt_http_route_rule_s {
} name;
} u;
- nxt_http_route_pattern_t pattern[0];
+ nxt_http_route_pattern_t pattern[];
};
typedef struct {
uint32_t items;
- nxt_http_route_rule_t *rule[0];
+ nxt_http_route_rule_t *rule[];
} nxt_http_route_ruleset_t;
@@ -117,7 +117,7 @@ typedef struct {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
uint32_t items;
- nxt_http_route_ruleset_t *ruleset[0];
+ nxt_http_route_ruleset_t *ruleset[];
} nxt_http_route_table_t;
@@ -125,7 +125,7 @@ struct nxt_http_route_addr_rule_s {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
uint32_t items;
- nxt_http_route_addr_pattern_t addr_pattern[0];
+ nxt_http_route_addr_pattern_t addr_pattern[];
};
@@ -139,20 +139,20 @@ typedef union {
typedef struct {
uint32_t items;
nxt_http_action_t action;
- nxt_http_route_test_t test[0];
+ nxt_http_route_test_t test[];
} nxt_http_route_match_t;
struct nxt_http_route_s {
nxt_str_t name;
uint32_t items;
- nxt_http_route_match_t *match[0];
+ nxt_http_route_match_t *match[];
};
struct nxt_http_routes_s {
uint32_t items;
- nxt_http_route_t *route[0];
+ nxt_http_route_t *route[];
};
diff --git a/src/nxt_upstream.h b/src/nxt_upstream.h
index afc53774..0c3b4c8b 100644
--- a/src/nxt_upstream.h
+++ b/src/nxt_upstream.h
@@ -52,7 +52,7 @@ struct nxt_upstream_s {
struct nxt_upstreams_s {
uint32_t items;
- nxt_upstream_t upstream[0];
+ nxt_upstream_t upstream[];
};
diff --git a/src/nxt_upstream_round_robin.c b/src/nxt_upstream_round_robin.c
index 1274f5a9..96c3e44e 100644
--- a/src/nxt_upstream_round_robin.c
+++ b/src/nxt_upstream_round_robin.c
@@ -23,7 +23,7 @@ struct nxt_upstream_round_robin_server_s {
struct nxt_upstream_round_robin_s {
uint32_t items;
- nxt_upstream_round_robin_server_t server[0];
+ nxt_upstream_round_robin_server_t server[];
};
diff --git a/src/python/nxt_python.h b/src/python/nxt_python.h
index 37e6265e..f5154514 100644
--- a/src/python/nxt_python.h
+++ b/src/python/nxt_python.h
@@ -48,7 +48,7 @@ typedef struct {
typedef struct {
nxt_int_t count;
- nxt_python_target_t target[0];
+ nxt_python_target_t target[];
} nxt_python_targets_t;