blobs-ipmid: use enum class for BlobOEMCommands
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic5aa3e38b4df33a2cfa29c575f17097e38d06605
diff --git a/test/ipmi_sessionstat_unittest.cpp b/test/ipmi_sessionstat_unittest.cpp
index 1e4005e..875b6a8 100644
--- a/test/ipmi_sessionstat_unittest.cpp
+++ b/test/ipmi_sessionstat_unittest.cpp
@@ -27,7 +27,7 @@
uint8_t request[MAX_IPMI_BUFFER] = {0};
uint8_t reply[MAX_IPMI_BUFFER] = {0};
auto req = reinterpret_cast<struct BmcBlobSessionStatTx*>(request);
- req->cmd = BlobOEMCommands::bmcBlobSessionStat;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobSessionStat);
req->crc = 0;
req->sessionId = 0x54;
@@ -50,7 +50,7 @@
uint8_t request[MAX_IPMI_BUFFER] = {0};
uint8_t reply[MAX_IPMI_BUFFER] = {0};
auto req = reinterpret_cast<struct BmcBlobSessionStatTx*>(request);
- req->cmd = BlobOEMCommands::bmcBlobSessionStat;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobSessionStat);
req->crc = 0;
req->sessionId = 0x54;
@@ -85,7 +85,7 @@
uint8_t request[MAX_IPMI_BUFFER] = {0};
uint8_t reply[MAX_IPMI_BUFFER] = {0};
auto req = reinterpret_cast<struct BmcBlobSessionStatTx*>(request);
- req->cmd = BlobOEMCommands::bmcBlobSessionStat;
+ req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobSessionStat);
req->crc = 0;
req->sessionId = 0x54;