tools: main: update ipmi-blob-tool constructors
ipmi-blob-tool changed the constructors to perform explicit ownership of
the inputs. Therefore, update our constructions to obey this pattern.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I8029ce2ced3d75505f918a66afdc5fd61409c69d
diff --git a/tools/main.cpp b/tools/main.cpp
index 3b9760c..640016a 100644
--- a/tools/main.cpp
+++ b/tools/main.cpp
@@ -140,8 +140,8 @@
exit(EXIT_FAILURE);
}
- ipmiblob::IpmiHandler ipmi;
- ipmiblob::BlobHandler blob(&ipmi);
+ auto ipmi = ipmiblob::IpmiHandler::CreateIpmiHandler();
+ ipmiblob::BlobHandler blob(std::move(ipmi));
host_tool::DevMemDevice devmem;
host_tool::PciUtilImpl pci;