summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-17 15:56:43 -0700
committerPatrick Venture <venture@google.com>2018-10-31 05:41:12 +0000
commitc49daa39c5a4b83d37e837e3f735090deaef7c62 (patch)
tree9fbab8722dfc1c5a7d85e47dbedb0edabaf37ece /app
parent4491a46fb05d1d9c90fed3452157645b339b9dab (diff)
downloadphosphor-host-ipmid-c49daa39c5a4b83d37e837e3f735090deaef7c62.zip
phosphor-host-ipmid-c49daa39c5a4b83d37e837e3f735090deaef7c62.tar.gz
app/channel: fixup c-style casting
Fix up c-style casting in app/channel.cpp:102 Change-Id: Ie6da0ff238856e01305127395d48ec161a30c4a1 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'app')
-rw-r--r--app/channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/channel.cpp b/app/channel.cpp
index 8d765c5..9db9ea8 100644
--- a/app/channel.cpp
+++ b/app/channel.cpp
@@ -99,7 +99,7 @@ ipmi_ret_t ipmi_app_channel_info(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
ipmi_context_t context)
{
ipmi_ret_t rc = IPMI_CC_OK;
- uint8_t* p = (uint8_t*)request;
+ auto* p = static_cast<uint8_t*>(request);
int channel = (*p) & CHANNEL_MASK;
std::string ethdevice = ipmi::network::ChanneltoEthernet(channel);
OpenPOWER on IntegriCloud