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/ipmi.cpp b/ipmi.cpp
index 0451c6e..1f760f4 100644
--- a/ipmi.cpp
+++ b/ipmi.cpp
@@ -33,7 +33,7 @@
#include <ipmid/api-types.hpp>
#include <ipmid/message.hpp>
#include <optional>
-#include <vector>
+#include <span>
namespace google
{
@@ -41,7 +41,7 @@
{
Resp handleSysCommand(HandlerInterface* handler, ::ipmi::Context::ptr,
- uint8_t cmd, const std::vector<uint8_t>& data)
+ uint8_t cmd, std::span<const uint8_t> data)
{
switch (cmd)
{