diff options
Diffstat (limited to 'src/core/list.h')
| -rw-r--r-- | src/core/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/list.h b/src/core/list.h index b0007ec0..204057a2 100644 --- a/src/core/list.h +++ b/src/core/list.h @@ -30,9 +30,9 @@ extern void nni_list_init_offset(nni_list *list, size_t offset); nni_list_init_offset(list, offsetof(type, field)) #define NNI_LIST_NODE_INIT(node) \ - { \ + do { \ (node)->ln_prev = (node)->ln_next = 0; \ - } + } while (0) extern void *nni_list_first(const nni_list *); extern void *nni_list_last(const nni_list *); |
