summaryrefslogtreecommitdiffstats
path: root/socket_channel.cpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-02-09 17:47:50 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-02-09 16:12:03 +0000
commitc0f5b5d2d99255770fca06afb8b79f63db5728ea (patch)
tree90139c708f7f3455431bcc3a87eb857a3e62949d /socket_channel.cpp
parent1efcb493a85a5d268c59f73a25f11aff8bf1ca5e (diff)
downloadphosphor-net-ipmid-c0f5b5d2d99255770fca06afb8b79f63db5728ea.tar.gz
phosphor-net-ipmid-c0f5b5d2d99255770fca06afb8b79f63db5728ea.zip
Fix compilation errors for x86-64 SDK
Change-Id: Ia515f3bb6687a1bfc1c37fb33e37602ab9d91950 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'socket_channel.cpp')
-rw-r--r--socket_channel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/socket_channel.cpp b/socket_channel.cpp
index a29ef8d..fa5c882 100644
--- a/socket_channel.cpp
+++ b/socket_channel.cpp
@@ -37,7 +37,7 @@ std::tuple<int, buffer> Channel::read()
auto bufferSize = outBuffer.size();
auto outputPtr = outBuffer.data();
- address.addrSize = sizeof(address.inAddr);
+ address.addrSize = static_cast<socklen_t>(sizeof(address.inAddr));
do
{
@@ -98,7 +98,8 @@ int Channel::write(buffer& inBuffer)
{
if (FD_ISSET(sockfd, &writeSet))
{
- address.addrSize = sizeof(address.inAddr);
+ address.addrSize =
+ static_cast<socklen_t>(sizeof(address.inAddr));
do
{
writeDataLen = sendto(sockfd, // File Descriptor
OpenPOWER on IntegriCloud