handler: move static object to main
Move the static object from the handler to main and drop the default
parameter such that one can build against this nicely in another build
environment.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I33347172907473977c52d30994f97a1685985b69
diff --git a/ethstats.hpp b/ethstats.hpp
index 984d46d..520ed15 100644
--- a/ethstats.hpp
+++ b/ethstats.hpp
@@ -65,7 +65,7 @@
*/
ipmi_ret_t handleEthStatCommand(const std::uint8_t* reqBuf,
std::uint8_t* replyCmdBuf, size_t* dataLen,
- const EthStatsInterface* handler = &handler);
+ const EthStatsInterface* handler);
/**
* Given an ethernet if_name and a field, build the full path.