The KDiskDeviceManager::CreateFileDevice() parameters changed slightly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd3be08988
commit
b8ea76bfc3
@ -20,9 +20,9 @@ main()
|
||||
KDiskDeviceManager::CreateDefault();
|
||||
KDiskDeviceManager *manager = KDiskDeviceManager::Default();
|
||||
manager->InitialDeviceScan();
|
||||
status_t error = manager->CreateFileDevice(kTestFileDevice);
|
||||
if (error != B_OK)
|
||||
printf("creating the file device failed: %s\n", strerror(error));
|
||||
partition_id id = manager->CreateFileDevice(kTestFileDevice);
|
||||
if (id < B_OK)
|
||||
printf("creating the file device failed: %s\n", strerror(id));
|
||||
if (manager->Lock()) {
|
||||
for (int32 cookie = 0;
|
||||
KDiskDevice *device = manager->NextDevice(&cookie); ) {
|
||||
|
Loading…
Reference in New Issue
Block a user