From 977f0530fc1b5f98ff5077098b942dd09befa641 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Mon, 28 Feb 2011 05:17:05 +0000 Subject: [PATCH] git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@371 aa027e90-d47c-11dd-86d7-074df07e0730 --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 4e69365..b14005d 100644 --- a/main.cpp +++ b/main.cpp @@ -262,9 +262,9 @@ int main(int argc, char *argv[]) try { Device::BlockDevicePointer device; - device.reset ( Device::BlockDevice::Open(fDiskImage.c_str(), File::ReadOnly, format) ); + device = Device::BlockDevice::Open(fDiskImage.c_str(), File::ReadOnly, format); - if (!device.get()) + if (!device) { std::fprintf(stderr, "Error: Unknown or unsupported device type.\n"); exit(1); @@ -272,7 +272,7 @@ int main(int argc, char *argv[]) disk = Disk::OpenFile(device); - if (!disk.get()) + if (!disk) { fprintf(stderr, "Unable to mount disk %s\n", fDiskImage.c_str()); exit(1);