blobs-ipmid: use enum class for BlobOEMCommands
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic5aa3e38b4df33a2cfa29c575f17097e38d06605
diff --git a/test/ipmi_delete_unittest.cpp b/test/ipmi_delete_unittest.cpp
index 9145fe3..afd3968 100644
--- a/test/ipmi_delete_unittest.cpp
+++ b/test/ipmi_delete_unittest.cpp
@@ -29,7 +29,7 @@
auto req = reinterpret_cast<struct BmcBlobDeleteTx*>(request);
std::string blobId = "abc";
- req->cmd = BlobOEMCommands::bmcBlobDelete;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobDelete);
req->crc = 0;
// length() doesn't include the nul-terminator.
std::memcpy(req->blobId, blobId.c_str(), blobId.length());
@@ -51,7 +51,7 @@
auto req = reinterpret_cast<struct BmcBlobDeleteTx*>(request);
std::string blobId = "a";
- req->cmd = BlobOEMCommands::bmcBlobDelete;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobDelete);
req->crc = 0;
// length() doesn't include the nul-terminator, request buff is initialized
// to 0s
@@ -76,7 +76,7 @@
auto req = reinterpret_cast<struct BmcBlobDeleteTx*>(request);
std::string blobId = "a";
- req->cmd = BlobOEMCommands::bmcBlobDelete;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobDelete);
req->crc = 0;
// length() doesn't include the nul-terminator, request buff is initialized
// to 0s