From fad612f3cca0777c5db0d1d6e8c04ecdf6ff1ce8 Mon Sep 17 00:00:00 2001 From: John Anthony Date: Sun, 16 Jun 2013 01:32:56 +0100 Subject: Tidied data structure --- list.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/list.h b/list.h index bb4473e..8d7d0dd 100644 --- a/list.h +++ b/list.h @@ -21,7 +21,8 @@ #include struct list_head { - struct list_head *next, *prev; + struct list_head *next; + struct list_head *prev; }; #define LIST_HEAD_INIT(name) { &(name), &(name) } @@ -39,10 +40,9 @@ 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, - struct list_head *prev, - struct list_head *next) -{ +static inline void +__list_add(struct list_head *new, struct list_head *prev, + struct list_head *next) { next->prev = new; new->next = next; new->prev = prev; -- cgit v1.2.3