summaryrefslogtreecommitdiff
path: root/tools/firewire/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/firewire/list.h')
-rw-r--r--tools/firewire/list.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/firewire/list.h b/tools/firewire/list.h
index fa119dd371fe..41f4bdadf634 100644
--- a/tools/firewire/list.h
+++ b/tools/firewire/list.h
@@ -1,46 +1,46 @@
struct list {
- struct list *next, *prev;
+ struct list *next, *prev;
};
static inline void
list_init(struct list *list)
{
- list->next = list;
- list->prev = list;
+ list->next = list;
+ list->prev = list;
}
static inline int
list_empty(struct list *list)
{
- return list->next == list;
+ return list->next == list;
}
static inline void
list_insert(struct list *link, struct list *new_link)
{
- new_link->prev = link->prev;
- new_link->next = link;
- new_link->prev->next = new_link;
- new_link->next->prev = new_link;
+ new_link->prev = link->prev;
+ new_link->next = link;
+ new_link->prev->next = new_link;
+ new_link->next->prev = new_link;
}
static inline void
list_append(struct list *list, struct list *new_link)
{
- list_insert((struct list *)list, new_link);
+ list_insert((struct list *)list, new_link);
}
static inline void
list_prepend(struct list *list, struct list *new_link)
{
- list_insert(list->next, new_link);
+ list_insert(list->next, new_link);
}
static inline void
list_remove(struct list *link)
{
- link->prev->next = link->next;
- link->next->prev = link->prev;
+ link->prev->next = link->next;
+ link->next->prev = link->prev;
}
#define list_entry(link, type, member) \