diff options
author | Carsten Schoenert <c.schoenert@gmail.com> | 2013-11-29 14:19:15 (EST) |
---|---|---|
committer | Paul Barker <paul@paulbarker.me.uk> | 2013-12-17 16:00:36 (EST) |
commit | 6b8be706c08f547d17949f2f72783375bbb8b14c (patch) | |
tree | 7e177d6a719577c6823640db457f833304479cb3 /libopkg/list.h | |
parent | fed9b245150a7faa630f7615302c472b7c68ff3e (diff) |
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 <c.schoenert@gmail.com>
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Diffstat (limited to 'libopkg/list.h')
-rw-r--r-- | libopkg/list.h | 5 |
1 files changed, 1 insertions, 4 deletions
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 */ |