]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/liblxc/lxc_list.h
Added C++ compatibility, change to libtool, improve monitoring
[mirror_lxc.git] / src / liblxc / lxc_list.h
index c6727e95bb2410cb0c6c0d9e0eaf630a96e76dee..45c04fb1f5b8ecd81f48f11de1da544e69516b41 100644 (file)
@@ -35,13 +35,13 @@ static inline int lxc_list_empty(struct lxc_list *list)
        return list == list->next;
 }
 
-static inline void lxc_list_add(struct lxc_list *list, struct lxc_list *new)
+static inline void lxc_list_add(struct lxc_list *head, struct lxc_list *list)
 {
-       struct lxc_list *next = list->next;
-       next->prev = new;
-       new->next = next;
-       new->prev = list;
-       list->next = new;
+       struct lxc_list *next = head->next;
+       next->prev = list;
+       list->next = next;
+       list->prev = head;
+       head->next = list;
 }
 
 static inline void lxc_list_del(struct lxc_list *list)