From 8e259ef1f2703d6c54f2230a953213af0a800807 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Wed, 16 Feb 2011 03:25:34 +0000 Subject: [PATCH] git-svn-id: https://profuse.googlecode.com/svn/branches/v2@328 aa027e90-d47c-11dd-86d7-074df07e0730 --- bin/apfm.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/apfm.cpp b/bin/apfm.cpp index e8dad48..82f17a6 100644 --- a/bin/apfm.cpp +++ b/bin/apfm.cpp @@ -1025,15 +1025,9 @@ int main(int argc, char **argv) unsigned actionCode = command(action); - device.reset( Device::BlockDevice::Open(file, commandFlags(actionCode), fmt) ); - - - - volume.reset( new Pascal::VolumeEntry(device.get())); - device.release(); switch (actionCode) @@ -1070,7 +1064,7 @@ int main(int argc, char **argv) catch (ProFUSE::Exception& e) { std::fprintf(stderr, "%s\n", e.what()); - std::fprintf(stderr, "%s\n", strerror(e.error())); + std::fprintf(stderr, "%s\n", e.errorString()); } return 0;