diff options
author | Patrick Venture <venture@google.com> | 2018-10-17 13:18:55 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-18 18:49:16 +0000 |
commit | b65eef6d88e58cd05c09ed2323e186758cb7a6da (patch) | |
tree | f36a07ecea0ae17b2b6c390665dc0f3c098d227a | |
parent | 6b094f8b9d0908504358f5bb4b17c87a4511e3bc (diff) | |
download | ipmi-fru-parser-b65eef6d88e58cd05c09ed2323e186758cb7a6da.tar.gz ipmi-fru-parser-b65eef6d88e58cd05c09ed2323e186758cb7a6da.zip |
strgfnhandler: fixup c-style cast
[strgfnhandler.cpp:29]: (style) C-style pointer casting
Change-Id: I12082f872362c913ecf0ad5abdcee0d1dfbc86e9
Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r-- | strgfnhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<write_fru_data_t*>(request); // Maintaining a temporary file to pump the data sprintf(fru_file_name, "%s%02x", "/tmp/ipmifru", reqptr->frunum); |