From 6b8be706c08f547d17949f2f72783375bbb8b14c Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Fri, 29 Nov 2013 14:19:15 -0500 Subject: libopkg: cleanup inside the public header files No functional changes! Just a cleanup like whitespaces, blank lines, tabs and reformating lines longer 76 characters. Also adding the missed comments at the closing bracket from the #ifndef HEADER_FOO_H ... #endif loop. This helps to identify the associated preprocessor elements like theay already exits in some files. Signed-off-by: Carsten Schoenert Signed-off-by: Paul Barker --- (limited to 'libopkg/list.h') diff --git a/libopkg/list.h b/libopkg/list.h index 250eebb..f164129 100644 --- a/libopkg/list.h +++ b/libopkg/list.h @@ -73,7 +73,6 @@ static inline void list_add_tail(struct list_head *newitem, struct list_head *he __list_add(newitem, head->prev, head); } - /* * Delete a list entry by making the prev/next entries * point to each other. @@ -191,8 +190,6 @@ static inline void list_splice_init(struct list_head *list, } } - - #define _offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ @@ -309,4 +306,4 @@ static inline void list_splice_init(struct list_head *list, } #endif -#endif +#endif /* _LINUX_LIST_H */ -- cgit v0.9.1