From 13e380343c0eec96a723e7407d59fb7f5d20aba0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Jan 2017 17:35:49 -0800 Subject: Fixes to enable REQ/REP to operate. This uncovered a few problems - inproc was not moving the headers to the body on transmit, and the message chunk allocator had a serious bug leading to memory corruption. I've also added a message dumper, which turns out to be incredibly useful during debugging. --- src/core/list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/list.c') diff --git a/src/core/list.c b/src/core/list.c index 8d6c3ace..ca200415 100644 --- a/src/core/list.c +++ b/src/core/list.c @@ -30,7 +30,7 @@ nni_list_init_offset(nni_list *list, size_t offset) void * -nni_list_first(nni_list *list) +nni_list_first(const nni_list *list) { nni_list_node *node = list->ll_head.ln_next; @@ -42,7 +42,7 @@ nni_list_first(nni_list *list) void * -nni_list_last(nni_list *list) +nni_list_last(const nni_list *list) { nni_list_node *node = list->ll_head.ln_prev; @@ -84,7 +84,7 @@ nni_list_prepend(nni_list *list, void *item) void * -nni_list_next(nni_list *list, void *item) +nni_list_next(const nni_list *list, void *item) { nni_list_node *node = NODE(list, item); @@ -96,7 +96,7 @@ nni_list_next(nni_list *list, void *item) void * -nni_list_prev(nni_list *list, void *item) +nni_list_prev(const nni_list *list, void *item) { nni_list_node *node = NODE(list, item); -- cgit v1.2.3-70-g09d2