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:
Ingo Weinhold 2010-01-04 00:11:56 +00:00
parent 8e0fba06cf
commit e8db7400e9

View File

@ -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;
}