From b65eef6d88e58cd05c09ed2323e186758cb7a6da Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 17 Oct 2018 13:18:55 -0700 Subject: strgfnhandler: fixup c-style cast [strgfnhandler.cpp:29]: (style) C-style pointer casting Change-Id: I12082f872362c913ecf0ad5abdcee0d1dfbc86e9 Signed-off-by: Patrick Venture --- strgfnhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strgfnhandler.cpp b/strgfnhandler.cpp index 63e9bd6..c4e4c58 100644 --- a/strgfnhandler.cpp +++ b/strgfnhandler.cpp @@ -26,7 +26,7 @@ ipmi_ret_t ipmi_storage_write_fru_data(ipmi_netfn_t netfn, ipmi_cmd_t cmd, const char* mode = NULL; // From the payload, extract the header that has fruid and the offsets - write_fru_data_t* reqptr = (write_fru_data_t*)request; + auto reqptr = static_cast(request); // Maintaining a temporary file to pump the data sprintf(fru_file_name, "%s%02x", "/tmp/ipmifru", reqptr->frunum); -- cgit v1.2.1