فهرست منبع

list.h: avoid shadowing warning

* include/corosync/list.h: Don't use "remove" as param name.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2066 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 سال پیش
والد
کامیت
70ef539c8d
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      include/corosync/list.h

+ 5 - 5
include/corosync/list.h

@@ -66,13 +66,13 @@ static void inline list_add_tail (struct list_head *element, struct list_head *h
 	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)
 {
-	remove->next->prev = remove->prev;
-	remove->prev->next = remove->next;
+	_remove->next->prev = _remove->prev;
+	_remove->prev->next = _remove->next;
 #ifdef DEBUG
-	remove->next = (struct list_head *)0xdeadb33f;
-	remove->prev = (struct list_head *)0xdeadb33f;
+	_remove->next = (struct list_head *)0xdeadb33f;
+	_remove->prev = (struct list_head *)0xdeadb33f;
 #endif
 }