summaryrefslogtreecommitdiffstats
path: root/apphandler.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-10 15:53:14 -0700
committerPatrick Venture <venture@google.com>2018-09-25 10:08:28 -0700
commitb51bf9c8815dae7ae3765158df8e69148539182d (patch)
treea7b6f9a7b7a99230ce630222882313e184d2781c /apphandler.cpp
parent3a5071a9256ded54366494e161045db73b2d7a92 (diff)
downloadphosphor-host-ipmid-b51bf9c8815dae7ae3765158df8e69148539182d.tar.gz
phosphor-host-ipmid-b51bf9c8815dae7ae3765158df8e69148539182d.zip
add std namespace prefix to common methods
Standard clib methods should be explicitly grabbed from the standard namespace. Change-Id: I8bcfcb260a99180d535ec8102c1a24c318cbc209 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'apphandler.cpp')
-rw-r--r--apphandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/apphandler.cpp b/apphandler.cpp
index ab5c604..cbbd5f4 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -325,7 +325,7 @@ ipmi_ret_t ipmi_app_get_device_id(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
rev.minor = (rev.minor > 99 ? 99 : rev.minor);
dev_id.fw[1] = rev.minor % 10 + (rev.minor / 10) * 16;
- memcpy(&dev_id.aux, rev.d, 4);
+ std::memcpy(&dev_id.aux, rev.d, 4);
}
// IPMI Spec version 2.0
@@ -374,7 +374,7 @@ ipmi_ret_t ipmi_app_get_device_id(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
}
// Pack the actual response
- memcpy(response, &dev_id, *data_len);
+ std::memcpy(response, &dev_id, *data_len);
return rc;
}
@@ -415,7 +415,7 @@ ipmi_ret_t ipmi_app_get_self_test_results(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
selftestresults[0] = 0x56;
selftestresults[1] = 0;
- memcpy(response, selftestresults, *data_len);
+ std::memcpy(response, selftestresults, *data_len);
return rc;
}
@@ -503,7 +503,7 @@ ipmi_ret_t ipmi_app_get_device_guid(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
int resp_byte = strtoul(tmp_array, NULL, 16); // Convert to hex byte
// Copy end to first
- memcpy((void*)&resp_uuid[resp_loc], &resp_byte, 1);
+ std::memcpy((void*)&resp_uuid[resp_loc], &resp_byte, 1);
resp_loc--;
id_octet += 2; // Finished with the 2 chars, advance
}
@@ -514,7 +514,7 @@ ipmi_ret_t ipmi_app_get_device_guid(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
*data_len = resp_size;
// Pack the actual response
- memcpy(response, &resp_uuid, *data_len);
+ std::memcpy(response, &resp_uuid, *data_len);
finish:
sd_bus_error_free(&error);
@@ -543,7 +543,7 @@ ipmi_ret_t ipmi_app_get_bt_capabilities(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
*data_len = sizeof(str);
// Pack the actual response
- memcpy(response, &str, *data_len);
+ std::memcpy(response, &str, *data_len);
return rc;
}
@@ -560,7 +560,7 @@ ipmi_ret_t ipmi_app_wildcard_handler(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
*data_len = strlen("THIS IS WILDCARD");
// Now pack actual response
- memcpy(response, "THIS IS WILDCARD", *data_len);
+ std::memcpy(response, "THIS IS WILDCARD", *data_len);
return rc;
}
@@ -619,7 +619,7 @@ ipmi_ret_t ipmi_app_get_sys_guid(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
}
*data_len = bmc_guid_len;
- memcpy(response, &respGuid, bmc_guid_len);
+ std::memcpy(response, &respGuid, bmc_guid_len);
}
catch (const InternalFailure& e)
{
OpenPOWER on IntegriCloud