From 355c561df26f94351cd680938823738a5688fc62 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Mon, 22 Oct 2018 08:49:36 -0700 Subject: 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 --- writefrudata.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'writefrudata.cpp') 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(fruArea->getData()), + fruArea->getLength(), fruData); if (rc < 0) { log("Error parsing FRU records"); -- cgit v1.2.1