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/eth.cpp b/eth.cpp
index bbe1940..748aa18 100644
--- a/eth.cpp
+++ b/eth.cpp
@@ -20,6 +20,7 @@
#include <cstdint>
#include <cstring>
#include <ipmid/api-types.hpp>
+#include <span>
#include <string>
#include <tuple>
#include <vector>
@@ -35,7 +36,7 @@
#define MAX_IPMI_BUFFER 64
#endif
-Resp getEthDevice(const std::vector<std::uint8_t>& data,
+Resp getEthDevice(std::span<const uint8_t> data,
const HandlerInterface* handler)
{
std::tuple<std::uint8_t, std::string> details =