summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-01 18:37:34 -0700
committerPatrick Venture <venture@google.com>2018-10-04 13:57:21 +0000
commit73eb687a46cab0d3d9d679e1af8a7a13353bcd11 (patch)
treeec7e7819a2dfe0a044d0ecd2f6b0009be6126e9d /main.cpp
parent7210b3109d3c93dd95eec0f74ab0635cba55fe2b (diff)
downloadphosphor-ipmi-blobs-73eb687a46cab0d3d9d679e1af8a7a13353bcd11.tar.gz
phosphor-ipmi-blobs-73eb687a46cab0d3d9d679e1af8a7a13353bcd11.zip
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 <venture@google.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 2 insertions, 3 deletions
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... */
OpenPOWER on IntegriCloud