summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_array.h4
-rw-r--r--src/core/ngx_core.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ngx_array.h b/src/core/ngx_array.h
index 6a60e3088..a0f2a7440 100644
--- a/src/core/ngx_array.h
+++ b/src/core/ngx_array.h
@@ -13,13 +13,13 @@
#include <ngx_core.h>
-struct ngx_array_s {
+typedef struct {
void *elts;
ngx_uint_t nelts;
size_t size;
ngx_uint_t nalloc;
ngx_pool_t *pool;
-};
+} ngx_array_t;
ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size);
diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
index bccc60341..dfcf2d56c 100644
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -15,7 +15,6 @@ 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_array_s ngx_array_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;