From 73eb687a46cab0d3d9d679e1af8a7a13353bcd11 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Mon, 1 Oct 2018 18:37:34 -0700 Subject: manager: return abstract base type Unit-tests later required knowing the vtable for a BlobManager, and this should avoid that needless complication. Change-Id: I7a208d08c2065b7383fd5095e00d17c1ab3b0cf5 Signed-off-by: Patrick Venture --- main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index f897fda..c6b5b04 100644 --- a/main.cpp +++ b/main.cpp @@ -55,9 +55,8 @@ static ipmi_ret_t handleBlobCommand(ipmi_cmd_t cmd, const uint8_t* reqBuf, return IPMI_CC_INVALID; } - BlobManager* manager = getBlobManager(); - return processBlobCommand(command, manager, &crc, reqBuf, replyCmdBuf, - dataLen); + return processBlobCommand(command, getBlobManager(), &crc, reqBuf, + replyCmdBuf, dataLen); } /* TODO: this should come from the makefile or recipe... */ -- cgit v1.2.3