mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 11:21:49 +00:00
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
This commit is contained in:
parent
5d90cabe58
commit
9c6b1db576
@ -52,19 +52,19 @@ static void inline list_init (struct list_head *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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user