summaryrefslogtreecommitdiff
path: root/lib/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/list.h')
-rw-r--r--lib/list.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/list.h b/lib/list.h
index 80afd71..0df77dd 100644
--- a/lib/list.h
+++ b/lib/list.h
@@ -26,8 +26,8 @@
* Doubly-linked list.
*/
-#ifndef _LIST_H
-#define _LIST_H
+#ifndef LIST_H
+#define LIST_H
#include <stdbool.h>
#include <stddef.h>
@@ -493,14 +493,14 @@ list_llsync_remove(struct list *node)
*/
#define list_llsync_first_entry(list, type, member) \
MACRO_BEGIN \
- struct list *___list; \
- struct list *___first; \
+ struct list *list___; \
+ struct list *first___; \
\
- ___list = (list); \
- ___first = list_llsync_first(___list); \
- list_end(___list, ___first) \
+ list___ = (list); \
+ first___ = list_llsync_first(list___); \
+ list_end(list___, first___) \
? NULL \
- : list_entry(___first, type, member); \
+ : list_entry(first___, type, member); \
MACRO_END
/*
@@ -535,4 +535,4 @@ for (entry = list_llsync_entry(list_first(list), \
entry = list_llsync_entry(list_next(&entry->member), \
typeof(*entry), member))
-#endif /* _LIST_H */
+#endif /* LIST_H */