Skip to content
Permalink
Browse files

net: fix build on MSVC2017

  • Loading branch information...
aberaud committed Jul 2, 2019
1 parent 297a23f commit a8718242cda414909207320ce0692fc49d3104fb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/network_utils.cpp
@@ -150,7 +150,7 @@ UdpSocket::sendTo(const SockAddr& dest, const uint8_t* data, size_t size, bool r
flags |= MSG_NOSIGNAL;
#endif

if (sendto(s, data, size, flags, dest.get(), dest.getLength()) == -1) {
if (sendto(s, (const char*)data, size, flags, dest.get(), dest.getLength()) == -1) {
int err = errno;
logger.d("Can't send message to %s: %s", dest.toString().c_str(), strerror(err));
if (err == EPIPE || err == ENOTCONN || err == ECONNRESET) {

0 comments on commit a871824

Please sign in to comment.
You can’t perform that action at this time.