diff options
author | Patrick Venture <venture@google.com> | 2018-10-22 08:49:36 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-31 19:49:48 +0000 |
commit | 355c561df26f94351cd680938823738a5688fc62 (patch) | |
tree | 4dddda52c189570af1055dbd8ea34eb69f479fd8 /writefrudata.cpp | |
parent | a2bed54e078039a20affbc8d2652938bffb19b06 (diff) | |
download | ipmi-fru-parser-355c561df26f94351cd680938823738a5688fc62.tar.gz ipmi-fru-parser-355c561df26f94351cd680938823738a5688fc62.zip |
writefrudata: drop extra parens in call to parse
Drop extra parentheses around parameters in call to parse_fru_area.
This involves changing a casting from c-style to a static_cast<>.
Change-Id: I281a950146fd296f8c9b15bd6dfc8562ad9b14bc
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r-- | writefrudata.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp index 1340669..11e3d77 100644 --- a/writefrudata.cpp +++ b/writefrudata.cpp @@ -158,8 +158,9 @@ int updateInventory(FruAreaVector& areaVector, sdbusplus::bus::bus& bus) { fruid = fruArea->getFruID(); // Fill the container with information - rc = parse_fru_area((fruArea)->getType(), (void*)(fruArea)->getData(), - (fruArea)->getLength(), fruData); + rc = parse_fru_area(fruArea->getType(), + static_cast<const void*>(fruArea->getData()), + fruArea->getLength(), fruData); if (rc < 0) { log<level::ERR>("Error parsing FRU records"); |