summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-22 08:49:36 -0700
committerPatrick Venture <venture@google.com>2018-10-31 19:49:48 +0000
commit355c561df26f94351cd680938823738a5688fc62 (patch)
tree4dddda52c189570af1055dbd8ea34eb69f479fd8 /writefrudata.cpp
parenta2bed54e078039a20affbc8d2652938bffb19b06 (diff)
downloadipmi-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.cpp5
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");
OpenPOWER on IntegriCloud