diff --git a/src/list.h b/src/list.h index 4fd482b..5b15ece 100644 --- a/src/list.h +++ b/src/list.h @@ -132,12 +132,12 @@ _ccd_inline int ccdListEmpty(const ccd_list_t *head) return head->next == head; } -_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new) +_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new_item) { - new->prev = l->prev; - new->next = l; - l->prev->next = new; - l->prev = new; + new_item->prev = l->prev; + new_item->next = l; + l->prev->next = new_item; + l->prev = new_item; } _ccd_inline void ccdListDel(ccd_list_t *item)