File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020#include < string.h>
2121#include < sys/ioctl.h>
2222#include < sys/socket.h>
23+ #include < sys/types.h>
2324#include < unistd.h>
2425
2526#include < algorithm>
@@ -198,7 +199,7 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
198199 } ecmd;
199200 int rv;
200201
201- ifr->ifr_data = (__caddr_t )&ecmd;
202+ ifr->ifr_data = (caddr_t )&ecmd;
202203 memset (&ecmd, 0 , sizeof (ecmd));
203204 ecmd.req .cmd = ETHTOOL_GLINKSETTINGS;
204205
@@ -226,7 +227,7 @@ static int getInterfaceSpeedGSet(int sock, struct ifreq* ifr) {
226227 struct ethtool_cmd edata;
227228 int rv;
228229
229- ifr->ifr_data = (__caddr_t )&edata;
230+ ifr->ifr_data = (caddr_t )&edata;
230231 memset (&edata, 0 , sizeof (edata));
231232 edata.cmd = ETHTOOL_GSET;
232233
You can’t perform that action at this time.
0 commit comments