From 04075cdef04e50b80651a27c5a1573eff0658cc4 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Fri, 27 Feb 2009 14:53:53 +0000 Subject: Rename symbol new Change the symbol 'new' to an alternative. The symbol new is reserved for C++ compilers. Signed-off-by: Geoff Levand --- lib/list/list.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/list/list.h') diff --git a/lib/list/list.h b/lib/list/list.h index 27b57fc..53080a0 100644 --- a/lib/list/list.h +++ b/lib/list/list.h @@ -35,17 +35,17 @@ struct list { _pos = list_entry(_pos->_member.next, typeof(*_pos), _member)) void list_init(struct list *list); -void list_insert_before(struct list_item *next, struct list_item *new); -void list_insert_after(struct list_item *prev, struct list_item *new); +void list_insert_before(struct list_item *next, struct list_item *item); +void list_insert_after(struct list_item *prev, struct list_item *item); void list_remove(struct list_item *item); -static inline void list_add(struct list *list, struct list_item *new) +static inline void list_add(struct list *list, struct list_item *item) { - list_insert_after(&list->head, new); + list_insert_after(&list->head, item); } -static inline void list_add_tail(struct list *list, struct list_item *new) +static inline void list_add_tail(struct list *list, struct list_item *item) { - list_insert_before(&list->head, new); + list_insert_before(&list->head, item); } #endif /* _LIST_H */ -- cgit v1.2.1