summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_core.h37
-rw-r--r--src/event/ngx_event_quic.c4
2 files changed, 20 insertions, 21 deletions
diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
index ade35be73..8e6c756c9 100644
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -12,25 +12,24 @@
#include <ngx_config.h>
-typedef struct ngx_module_s ngx_module_t;
-typedef struct ngx_conf_s ngx_conf_t;
-typedef struct ngx_cycle_s ngx_cycle_t;
-typedef struct ngx_pool_s ngx_pool_t;
-typedef struct ngx_chain_s ngx_chain_t;
-typedef struct ngx_log_s ngx_log_t;
-typedef struct ngx_open_file_s ngx_open_file_t;
-typedef struct ngx_command_s ngx_command_t;
-typedef struct ngx_file_s ngx_file_t;
-typedef struct ngx_event_s ngx_event_t;
-typedef struct ngx_event_aio_s ngx_event_aio_t;
-typedef struct ngx_connection_s ngx_connection_t;
-typedef struct ngx_thread_task_s ngx_thread_task_t;
-typedef struct ngx_ssl_s ngx_ssl_t;
-typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
-typedef struct ngx_quic_connection_s ngx_quic_connection_t;
-typedef struct ngx_quic_stream_s ngx_quic_stream_t;
-typedef struct ngx_ssl_connection_s ngx_ssl_connection_t;
-typedef struct ngx_udp_connection_s ngx_udp_connection_t;
+typedef struct ngx_module_s ngx_module_t;
+typedef struct ngx_conf_s ngx_conf_t;
+typedef struct ngx_cycle_s ngx_cycle_t;
+typedef struct ngx_pool_s ngx_pool_t;
+typedef struct ngx_chain_s ngx_chain_t;
+typedef struct ngx_log_s ngx_log_t;
+typedef struct ngx_open_file_s ngx_open_file_t;
+typedef struct ngx_command_s ngx_command_t;
+typedef struct ngx_file_s ngx_file_t;
+typedef struct ngx_event_s ngx_event_t;
+typedef struct ngx_event_aio_s ngx_event_aio_t;
+typedef struct ngx_connection_s ngx_connection_t;
+typedef struct ngx_thread_task_s ngx_thread_task_t;
+typedef struct ngx_ssl_s ngx_ssl_t;
+typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
+typedef struct ngx_quic_stream_s ngx_quic_stream_t;
+typedef struct ngx_ssl_connection_s ngx_ssl_connection_t;
+typedef struct ngx_udp_connection_s ngx_udp_connection_t;
typedef void (*ngx_event_handler_pt)(ngx_event_t *ev);
typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index 97ffd96c4..edd1c7892 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -114,7 +114,7 @@ typedef struct {
} ngx_quic_send_ctx_t;
-struct ngx_quic_connection_s {
+typedef struct {
ngx_udp_connection_t udp;
uint32_t version;
@@ -182,7 +182,7 @@ struct ngx_quic_connection_s {
unsigned in_retry:1;
unsigned initialized:1;
unsigned validated:1;
-};
+} ngx_quic_connection_t;
typedef struct {