diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-24 04:56:54 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-24 04:56:54 +0100 |
commit | 97f83b42af28a9ecbfd714a8337fd399a32cfb78 (patch) | |
tree | c57ba504ece0a3b127de745774c0bd72d85436dc /lib/list.h | |
parent | 092153af96c9d504d8b76973f6796bcd106801ec (diff) |
Don't use reserved identifiers
See C99 7.1.3 Reserved identifiers.
Diffstat (limited to 'lib/list.h')
-rw-r--r-- | lib/list.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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 */ |