Quellcode durchsuchen

defect 909
c++ keywords are used in the internal implementation of list.h



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@832 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake vor 20 Jahren
Ursprung
Commit
9c6b1db576
1 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen
  1. 10 10
      include/list.h

+ 10 - 10
include/list.h

@@ -52,19 +52,19 @@ static void inline list_init (struct list_head *head)
 	head->prev = head;
 	head->prev = head;
 }
 }
 
 
-static void inline list_add (struct list_head *new, struct list_head *head)
+static void inline list_add (struct list_head *element, struct list_head *head)
 {
 {
-	head->next->prev = new;
-	new->next = head->next;
-	new->prev = head;
-	head->next = new;
+	head->next->prev = element;
+	element->next = head->next;
+	element->prev = head;
+	head->next = element;
 }
 }
-static void inline list_add_tail (struct list_head *new, struct list_head *head)
+static void inline list_add_tail (struct list_head *element, struct list_head *head)
 {
 {
-	head->prev->next = new;
-	new->next = head;
-	new->prev = head->prev;
-	head->prev = new;
+	head->prev->next = element;
+	element->next = head;
+	element->prev = head->prev;
+	head->prev = element;
 }
 }
 static void inline list_del (struct list_head *remove)
 static void inline list_del (struct list_head *remove)
 {
 {