update: use sdbusplus instead of sd_bus raw pointers
Update code to use sdbusplus instead of raw sd_bus pointers.
Change-Id: I80cd4492480824827c27fbf19eb54487e28d3b75
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/strgfnhandler.cpp b/strgfnhandler.cpp
index a00fc73..9526525 100644
--- a/strgfnhandler.cpp
+++ b/strgfnhandler.cpp
@@ -6,6 +6,7 @@
#include <cstdio>
#include <cstring>
#include <phosphor-logging/log.hpp>
+#include <sdbusplus/bus.hpp>
void register_netfn_storage_write_fru() __attribute__((constructor));
@@ -100,8 +101,9 @@
// We received some bytes. It may be full or partial. Send a valid
// FRU file to the inventory controller on DBus for the correct number
+ sdbusplus::bus::bus bus{bus_type};
bool bmc_fru = false;
- validateFRUArea(reqptr->frunum, fru_file_name, bus_type, bmc_fru);
+ validateFRUArea(reqptr->frunum, fru_file_name, bus, bmc_fru);
return rc;
}