diff options
author | Patrick Venture <venture@google.com> | 2018-10-21 09:07:11 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-29 09:08:53 -0700 |
commit | a8093a25525555c48ca092e5130f7ff7ffa38006 (patch) | |
tree | 19ea38787f9ba3014480491d8747f6aab91f55be /strgfnhandler.cpp | |
parent | c7eecc19632571319e39ab8e9f7500f7a5d1b245 (diff) | |
download | ipmi-fru-parser-a8093a25525555c48ca092e5130f7ff7ffa38006.tar.gz ipmi-fru-parser-a8093a25525555c48ca092e5130f7ff7ffa38006.zip |
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>
Diffstat (limited to 'strgfnhandler.cpp')
-rw-r--r-- | strgfnhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ ipmi_ret_t ipmi_storage_write_fru_data(ipmi_netfn_t netfn, ipmi_cmd_t cmd, // 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; } |