Avoid using DoublyLinkedList internals.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8e0fba06cf
commit
e8db7400e9
@ -178,14 +178,14 @@ KernelDaemon::_NextDaemon(struct daemon& marker)
|
||||
// The marker is not part of the list yet, just return the first entry
|
||||
daemon = fDaemons.Head();
|
||||
} else {
|
||||
daemon = marker.GetDoublyLinkedListLink()->next;
|
||||
daemon = fDaemons.GetNext(&marker);
|
||||
fDaemons.Remove(&marker);
|
||||
}
|
||||
|
||||
marker.arg = daemon;
|
||||
|
||||
if (daemon != NULL)
|
||||
fDaemons.Insert(daemon->GetDoublyLinkedListLink()->next, &marker);
|
||||
fDaemons.InsertAfter(daemon, &marker);
|
||||
|
||||
return daemon;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user