From 271b1f27bf762d4dae6c8a90f288fafb65f84fb4 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 17 Oct 2007 22:28:22 +0000 Subject: [PATCH] Adjusted to yesterday's API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22605 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/apps/partitioner/Partitioner.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/tests/apps/partitioner/Partitioner.cpp b/src/tests/apps/partitioner/Partitioner.cpp index b4b91e3af6..3842c2c19f 100644 --- a/src/tests/apps/partitioner/Partitioner.cpp +++ b/src/tests/apps/partitioner/Partitioner.cpp @@ -459,20 +459,11 @@ private: return; } - // get the disk system - BDiskSystem diskSystem; - status_t error = partition->GetDiskSystem(&diskSystem); - if (error != B_OK) { - printf("Failed to get disk system for partition: %s\n", - strerror(error)); - return; - } - // get supported types BObjectList supportedTypes(20, true); - char typeBuffer[B_DISK_DEVICE_TYPE_LENGTH]; + BString typeBuffer; int32 cookie = 0; - while (diskSystem.GetNextSupportedType(partition, &cookie, typeBuffer) + while (partition->GetNextSupportedChildType(&cookie, &typeBuffer) == B_OK) { supportedTypes.AddItem(new BString(typeBuffer)); } @@ -485,7 +476,7 @@ private: // get partitioning info BPartitioningInfo partitioningInfo; - error = partition->GetPartitioningInfo(&partitioningInfo); + status_t error = partition->GetPartitioningInfo(&partitioningInfo); if (error != B_OK) { printf("Failed to get partitioning info for partition: %s\n", strerror(error));