diff options
Diffstat (limited to 'src/core/list.c')
| -rw-r--r-- | src/core/list.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/list.c b/src/core/list.c index 65e86670..dd5406f7 100644 --- a/src/core/list.c +++ b/src/core/list.c @@ -8,16 +8,14 @@ // found online at https://opensource.org/licenses/MIT. // -#include <stdlib.h> -#include <string.h> - -#include "core/nng_impl.h" +#include "list.h" +#include "defs.h" // Linked list implementation. We implement a doubly linked list. // Using pointer arithmetic, we can operate as a list of "anything". #define NODE(list, item) \ - (nni_list_node *) (void *)(((char *) item) + list->ll_offset) + (nni_list_node *) (void *) (((char *) item) + list->ll_offset) #define ITEM(list, node) (void *) (((char *) node) - list->ll_offset) void |
