diff --git a/include/ardix/list.h b/include/ardix/list.h index 0819067..4ecd489 100644 --- a/include/ardix/list.h +++ b/include/ardix/list.h @@ -17,8 +17,8 @@ struct list_head { } #define list_init(head) ({ \ - (head).next = &(head); \ - (head).prev = &(head); \ + (head).next = head; \ + (head).prev = head; \ }) #define list_entry(ptr, type, member) \