From 654c6676982a04fddc583bd17083ebed6fa9c6eb Mon Sep 17 00:00:00 2001 From: james9837 Date: Wed, 3 Oct 2018 10:35:31 -0400 Subject: [PATCH] fix(build): replace caddr_t with char* (#1454) caddr_t isn't defined on all systems Fixes #1447 --- src/adapters/net.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adapters/net.cpp b/src/adapters/net.cpp index d32f4b25..7168d01a 100644 --- a/src/adapters/net.cpp +++ b/src/adapters/net.cpp @@ -194,7 +194,7 @@ namespace net { */ strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); - request.ifr_data = reinterpret_cast(&driver); + request.ifr_data = reinterpret_cast(&driver); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return; @@ -258,7 +258,7 @@ namespace net { memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); data.cmd = ETHTOOL_GSET; - request.ifr_data = reinterpret_cast(&data); + request.ifr_data = reinterpret_cast(&data); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return false; @@ -283,7 +283,7 @@ namespace net { memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); data.cmd = ETHTOOL_GLINK; - request.ifr_data = reinterpret_cast(&data); + request.ifr_data = reinterpret_cast(&data); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return false;