From d37e139ddd655cfc327233ae4d0cfc3d71658817 Mon Sep 17 00:00:00 2001 From: Felix Kopp Date: Wed, 14 Oct 2020 17:56:43 +0200 Subject: [PATCH] Bugfix for list_init macro --- include/ardix/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) \