diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-11 06:50:54 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-11 06:50:54 -0700 |
| commit | 2f24a1b1c93b8c45dce391ed0439131f9ad8cf28 (patch) | |
| tree | 51065064cec7f35b900291fb2a101b7dbe3b6826 /src/core/list.c | |
| parent | b98e03b26bfc593326bd7c1d56fd69626f6a93cb (diff) | |
| download | nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.tar.gz nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.tar.bz2 nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.zip | |
fix includes for core
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 |
