Rename all error_code instances to ec
We're not consistent here, which leads to people copying and pasting
code all over, which has lead to a bunch of different names for error
codes.
This commit changes to coerce them all to "ec", because that's what
boost uses for a naming convention.
Tested: Rename only, code compiles.
Change-Id: I7053cc738faa9f7a82f55fc46fc78618bdf702a5
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index 011e670..b5d0127 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -570,11 +570,11 @@
sensorPath,
[asyncResp, chassisSubNode, sensorTypes,
callback{std::forward<const Callback>(callback)}](
- const boost::system::error_code& e,
+ const boost::system::error_code& ec2,
const dbus::utility::MapperEndPoints& nodeSensorList) {
- if (e)
+ if (ec2)
{
- if (e.value() != EBADR)
+ if (ec2.value() != EBADR)
{
messages::internalError(asyncResp->res);
return;
@@ -1010,9 +1010,9 @@
dbus::utility::getAssociationEndPoints(
path + "/chassis",
[path, owner, sensorsAsyncResp](
- const boost::system::error_code& e,
+ const boost::system::error_code& ec2,
const dbus::utility::MapperEndPoints& endpoints) {
- if (e)
+ if (ec2)
{
return; // if they don't have an association we
// can't tell what chassis is
@@ -1032,9 +1032,9 @@
*crow::connections::systemBus, owner, path,
"xyz.openbmc_project.Control.FanRedundancy",
[path, sensorsAsyncResp](
- const boost::system::error_code& err,
+ const boost::system::error_code& ec3,
const dbus::utility::DBusPropertiesMap& ret) {
- if (err)
+ if (ec3)
{
return; // don't have to have this
// interface