summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_array.h')
-rw-r--r--src/nxt_array.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_array.h b/src/nxt_array.h
index 491572da..33e9807a 100644
--- a/src/nxt_array.h
+++ b/src/nxt_array.h
@@ -9,16 +9,16 @@
typedef struct {
- void *elts;
+ void *elts;
/* nelts has uint32_t type because it is used most often. */
- uint32_t nelts;
- uint16_t size;
- uint16_t nalloc;
- nxt_mem_pool_t *mem_pool;
+ uint32_t nelts;
+ uint16_t size;
+ uint16_t nalloc;
+ nxt_mp_t *mem_pool;
} nxt_array_t;
-NXT_EXPORT nxt_array_t *nxt_array_create(nxt_mem_pool_t *mp, nxt_uint_t n,
+NXT_EXPORT nxt_array_t *nxt_array_create(nxt_mp_t *mp, nxt_uint_t n,
size_t size);
NXT_EXPORT void *nxt_array_add(nxt_array_t *array);
NXT_EXPORT void *nxt_array_zero_add(nxt_array_t *array);