util: Fix mac truncation
We don't want to allow MACs to be silently truncated.
Change-Id: I1d2771c481bccb30e957b829fd1db1e4db0dc051
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/util.hpp b/src/util.hpp
index 8ca8b4b..dece269 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -9,7 +9,6 @@
#include <optional>
#include <sdbusplus/bus.hpp>
#include <stdplus/zstring.hpp>
-#include <stdplus/zstring_view.hpp>
#include <string>
#include <string_view>
#include <unordered_set>
@@ -45,7 +44,7 @@
* @returns A mac address in network byte order
* @throws std::runtime_error for bad mac
*/
-ether_addr fromString(stdplus::zstring_view str);
+ether_addr fromString(std::string_view str);
/** @brief Converts the given mac address bytes into a string
* @param[in] mac - The mac address