Switched to new DoublyLinkedList class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11193 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -227,7 +227,7 @@ Partition::Scan(bool mountFileSystems)
|
||||
// now that we've found something, check our children
|
||||
// out as well!
|
||||
|
||||
NodeIterator iterator = fChildren.Iterator();
|
||||
NodeIterator iterator = fChildren.GetIterator();
|
||||
Partition *child = NULL;
|
||||
|
||||
while ((child = (Partition *)iterator.Next()) != NULL) {
|
||||
@@ -245,8 +245,10 @@ Partition::Scan(bool mountFileSystems)
|
||||
|
||||
// remove all unused children (we keep only file systems)
|
||||
|
||||
while ((child = (Partition *)fChildren.RemoveHead()) != NULL)
|
||||
while ((child = (Partition *)fChildren.Head()) != NULL) {
|
||||
fChildren.Remove(child);
|
||||
delete child;
|
||||
}
|
||||
|
||||
// remember the module name that identified us
|
||||
fModuleName = module->module.name;
|
||||
@@ -290,7 +292,7 @@ add_partitions_for(int fd, bool mountFileSystems)
|
||||
|
||||
// if not, we'll need to tell the children that their parent is gone
|
||||
|
||||
NodeIterator iterator = gPartitions.Iterator();
|
||||
NodeIterator iterator = gPartitions.GetIterator();
|
||||
Partition *child = NULL;
|
||||
|
||||
while ((child = (Partition *)iterator.Next()) != NULL) {
|
||||
|
||||
@@ -68,7 +68,6 @@ Node::Node()
|
||||
:
|
||||
fRefCount(1)
|
||||
{
|
||||
fLink.next = fLink.prev = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -366,7 +365,7 @@ status_t
|
||||
mount_file_systems(stage2_args *args)
|
||||
{
|
||||
// mount other partitions on boot device (if any)
|
||||
NodeIterator iterator = gPartitions.Iterator();
|
||||
NodeIterator iterator = gPartitions.GetIterator();
|
||||
|
||||
Partition *partition = NULL;
|
||||
while ((partition = (Partition *)iterator.Next()) != NULL) {
|
||||
@@ -387,7 +386,7 @@ mount_file_systems(stage2_args *args)
|
||||
if (status < B_OK)
|
||||
return status;
|
||||
|
||||
iterator = gBootDevices.Iterator();
|
||||
iterator = gBootDevices.GetIterator();
|
||||
Node *device = NULL, *last = NULL;
|
||||
while ((device = iterator.Next()) != NULL) {
|
||||
// don't scan former boot device again
|
||||
|
||||
@@ -442,7 +442,7 @@ platform_get_boot_partition(struct stage2_args *args, Node *bootDevice,
|
||||
|
||||
dprintf("boot partition offset: %Ld\n", offset);
|
||||
|
||||
NodeIterator iterator = list->Iterator();
|
||||
NodeIterator iterator = list->GetIterator();
|
||||
boot::Partition *partition = NULL;
|
||||
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
|
||||
dprintf("partition offset = %Ld, size = %Ld\n", partition->offset, partition->size);
|
||||
|
||||
Reference in New Issue
Block a user