google-ipmi-sys: Convert input to use std::span<const uint8_t>
Change-Id: I533de34c04e3d2577cb9076add441153b2994c30
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/cable.cpp b/cable.cpp
index d06cf23..cac7fea 100644
--- a/cable.cpp
+++ b/cable.cpp
@@ -21,6 +21,7 @@
#include <cstdint>
#include <cstring>
#include <ipmid/api-types.hpp>
+#include <span>
#include <string>
#include <vector>
@@ -34,8 +35,7 @@
uint8_t ifNameLength;
} __attribute__((packed));
-Resp cableCheck(const std::vector<std::uint8_t>& data,
- const HandlerInterface* handler)
+Resp cableCheck(std::span<const uint8_t> data, const HandlerInterface* handler)
{
// There is an IPMI LAN channel statistics command which could be used for
// this type of check, however, we're not able to wait for the OpenBMC