summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-20 13:31:28 -0700
committerPatrick Venture <venture@google.com>2018-10-20 13:31:28 -0700
commit9a528f244e068f5e5be157b0aa02452642425746 (patch)
treeca1fc6f1268a80a36e30d23345d154412cbae330 /writefrudata.cpp
parent44a957d80ba0bed05829e655b9f8008b8f58e522 (diff)
downloadipmi-fru-parser-9a528f244e068f5e5be157b0aa02452642425746.tar.gz
ipmi-fru-parser-9a528f244e068f5e5be157b0aa02452642425746.zip
writefrudata.cpp: fixup variable shadowing
[writefrudata.cpp:176] -> [writefrudata.cpp:242]: (style) Local variable path shadows outer symbol Change-Id: I9fc35d6d67f51a0b9a2b9174c314e560d8531119 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r--writefrudata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 5304929..a831b7f 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -239,7 +239,7 @@ int updateInventory(fru_area_vec_t& area_vec, sd_bus* bus_sd)
}
// Call the inventory manager
- sdbusplus::message::object_path path = instance.path;
+ sdbusplus::message::object_path objectPath = instance.path;
// Check and update extra properties
if (extras.end() != extrasIter)
{
@@ -251,7 +251,7 @@ int updateInventory(fru_area_vec_t& area_vec, sd_bus* bus_sd)
}
}
}
- objects.emplace(path, interfaces);
+ objects.emplace(objectPath, interfaces);
}
auto pimMsg = bus.new_method_call(service.c_str(), path.c_str(),
OpenPOWER on IntegriCloud