summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-28 23:52:07 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-28 23:52:07 +0300
commit52f79c3e531ec64ddd81e2467e0081616e71a7c8 (patch)
tree1b8692dc229dabf4e6cb41a3259c7244958907ae /src
parente4afc6ae9871d7e2cd13c81f2a7fe1535ea574c5 (diff)
downloadunit-52f79c3e531ec64ddd81e2467e0081616e71a7c8.tar.gz
unit-52f79c3e531ec64ddd81e2467e0081616e71a7c8.tar.bz2
Fixed building on Solaris broken in changeset 4077decf847b.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_list.c2
-rw-r--r--src/nxt_list.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_list.c b/src/nxt_list.c
index 9a44ce9a..cab925cb 100644
--- a/src/nxt_list.c
+++ b/src/nxt_list.c
@@ -53,7 +53,7 @@ nxt_list_add(nxt_list_t *list)
list->last = last;
}
- elt = nxt_list_data(last) + last->nelts * list->size;
+ elt = nxt_pointer_to(nxt_list_data(last), last->nelts * list->size);
last->nelts++;
return elt;
diff --git a/src/nxt_list.h b/src/nxt_list.h
index 3bb2b139..f400a356 100644
--- a/src/nxt_list.h
+++ b/src/nxt_list.h
@@ -61,7 +61,7 @@ nxt_list_elt(nxt_list_t *list, nxt_uint_t n)
while (part != NULL) {
if (n < (nxt_uint_t) part->nelts) {
- return ((void *) (nxt_list_data(part) + n * (list)->size));
+ return nxt_pointer_to(nxt_list_data(part), n * (list)->size);
}
n -= (nxt_uint_t) part->nelts;
@@ -103,7 +103,7 @@ NXT_EXPORT void *nxt_list_next(nxt_list_t *list, nxt_list_next_t *next);
#define \
nxt_list_next_value(list, next) \
- ((void *) (nxt_list_data((next)->part) + (next)->elt * (list)->size))
+ (nxt_pointer_to(nxt_list_data((next)->part), (next)->elt * (list)->size))
nxt_inline nxt_uint_t