[njs] Style.
Dmitry Volyntsev
xeioex at nginx.com
Fri Oct 4 16:50:30 UTC 2019
details: https://hg.nginx.org/njs/rev/1cd7640472b8
branches:
changeset: 1171:1cd7640472b8
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Fri Oct 04 19:46:12 2019 +0300
description:
Style.
Fixed typo in njs_arr_t structure.
This closes #226 issue on Github.
diffstat:
src/njs_arr.c | 10 +++++-----
src/njs_arr.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (60 lines):
diff -r d62db2c99851 -r 1cd7640472b8 src/njs_arr.c
--- a/src/njs_arr.c Fri Oct 04 17:19:06 2019 +0300
+++ b/src/njs_arr.c Fri Oct 04 19:46:12 2019 +0300
@@ -21,7 +21,7 @@ njs_arr_create(njs_mp_t *mp, njs_uint_t
arr->start = (char *) arr + sizeof(njs_arr_t);
arr->items = 0;
arr->item_size = size;
- arr->avalaible = n;
+ arr->available = n;
arr->pointer = 1;
arr->separate = 1;
arr->mem_pool = mp;
@@ -37,7 +37,7 @@ njs_arr_init(njs_mp_t *mp, njs_arr_t *ar
arr->start = start;
arr->items = n;
arr->item_size = size;
- arr->avalaible = n;
+ arr->available = n;
arr->pointer = 0;
arr->separate = 0;
arr->mem_pool = mp;
@@ -61,7 +61,7 @@ njs_arr_destroy(njs_arr_t *arr)
#if (NJS_DEBUG)
arr->start = NULL;
arr->items = 0;
- arr->avalaible = 0;
+ arr->available = 0;
#endif
}
@@ -84,7 +84,7 @@ njs_arr_add_multiple(njs_arr_t *arr, njs
void *item, *start, *old;
uint32_t n;
- n = arr->avalaible;
+ n = arr->available;
items += arr->items;
if (items >= n) {
@@ -107,7 +107,7 @@ njs_arr_add_multiple(njs_arr_t *arr, njs
return NULL;
}
- arr->avalaible = n;
+ arr->available = n;
old = arr->start;
arr->start = start;
diff -r d62db2c99851 -r 1cd7640472b8 src/njs_arr.h
--- a/src/njs_arr.h Fri Oct 04 17:19:06 2019 +0300
+++ b/src/njs_arr.h Fri Oct 04 19:46:12 2019 +0300
@@ -15,7 +15,7 @@ typedef struct {
* The item size is no more than 64K.
*/
uint16_t items;
- uint16_t avalaible;
+ uint16_t available;
uint16_t item_size;
uint8_t pointer;
More information about the nginx-devel
mailing list