summaryrefslogtreecommitdiffstats
path: root/systemintfcmds.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 /systemintfcmds.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 'systemintfcmds.cpp')
-rw-r--r--systemintfcmds.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/systemintfcmds.cpp b/systemintfcmds.cpp
index 5f5ac03..e0ff156 100644
--- a/systemintfcmds.cpp
+++ b/systemintfcmds.cpp
@@ -8,6 +8,7 @@
#include <host-ipmid/ipmid-api.h>
#include <mapper.h>
+#include <cstring>
#include <host-ipmid/ipmid-host-cmd.hpp>
void register_netfn_app_functions() __attribute__((constructor));
@@ -50,10 +51,10 @@ ipmi_ret_t ipmi_app_read_event(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
oem_sel.data[0] = hostCmd.second;
// All '0xFF' since unused.
- memset(&oem_sel.data[1], 0xFF, 3);
+ std::memset(&oem_sel.data[1], 0xFF, 3);
// Pack the actual response
- memcpy(response, &oem_sel, *data_len);
+ std::memcpy(response, &oem_sel, *data_len);
return rc;
}
@@ -80,7 +81,7 @@ ipmi_ret_t ipmi_app_get_msg_flags(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
*data_len = sizeof(set_event_msg_buffer_full);
// Pack the actual response
- memcpy(response, &set_event_msg_buffer_full, *data_len);
+ std::memcpy(response, &set_event_msg_buffer_full, *data_len);
return rc;
}
@@ -96,7 +97,7 @@ ipmi_ret_t ipmi_app_set_bmc_global_enables(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
// Event and message logging enabled by default so return for now
#ifdef __IPMI_DEBUG__
- printf("IPMI APP SET BMC GLOBAL ENABLES Ignoring for now\n");
+ std::printf("IPMI APP SET BMC GLOBAL ENABLES Ignoring for now\n");
#endif
return rc;
OpenPOWER on IntegriCloud