diff options
author | Dimitri Staessens <[email protected]> | 2016-02-23 16:46:43 +0100 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2016-02-23 16:53:52 +0100 |
commit | e13956c0b6f7635b2b4c81a07f184b56a3dbc6c7 (patch) | |
tree | 5e8e8c3efc3056953ef3054d693f0c6a1980b5ba /include | |
parent | d773fdaad545c122ff81acb57080c8baf46f3735 (diff) | |
download | ouroboros-e13956c0b6f7635b2b4c81a07f184b56a3dbc6c7.tar.gz ouroboros-e13956c0b6f7635b2b4c81a07f184b56a3dbc6c7.zip |
include: removed inline to comply with C89
list.h contained inline functions, which are not in the C89 standard.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/list.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |