From e13956c0b6f7635b2b4c81a07f184b56a3dbc6c7 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 23 Feb 2016 16:46:43 +0100 Subject: include: removed inline to comply with C89 list.h contained inline functions, which are not in the C89 standard. --- include/ouroboros/list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ouroboros/list.h') diff --git a/include/ouroboros/list.h b/include/ouroboros/list.h index 7c59df7a..1a96ddb4 100644 --- a/include/ouroboros/list.h +++ b/include/ouroboros/list.h @@ -55,7 +55,7 @@ struct list_head { * This is only for internal list manipulation where we know * the prev/next entries already! */ -static inline void __list_add(struct list_head * new, +static void __list_add(struct list_head * new, struct list_head * prev, struct list_head * next) { @@ -100,7 +100,7 @@ void list_add_tail(struct list_head * new, * This is only for internal list manipulation where we know * the prev/next entries already! */ -static inline void __list_del(struct list_head * prev, +static void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; @@ -163,7 +163,7 @@ int list_empty(struct list_head * head) return head->next == head; } -static inline void __list_splice(struct list_head *list, +static void __list_splice(struct list_head *list, struct list_head *head) { struct list_head *first = list->next; -- cgit v1.2.3