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 20
20
#include < string.h>
21
21
#include < sys/ioctl.h>
22
22
#include < sys/socket.h>
23
+ #include < sys/types.h>
23
24
#include < unistd.h>
24
25
25
26
#include < algorithm>
@@ -198,7 +199,7 @@ static int getInterfaceSpeedGLinkSettings(int sock, struct ifreq* ifr) {
198
199
} ecmd;
199
200
int rv;
200
201
201
- ifr->ifr_data = (__caddr_t )&ecmd;
202
+ ifr->ifr_data = (caddr_t )&ecmd;
202
203
memset (&ecmd, 0 , sizeof (ecmd));
203
204
ecmd.req .cmd = ETHTOOL_GLINKSETTINGS;
204
205
@@ -226,7 +227,7 @@ static int getInterfaceSpeedGSet(int sock, struct ifreq* ifr) {
226
227
struct ethtool_cmd edata;
227
228
int rv;
228
229
229
- ifr->ifr_data = (__caddr_t )&edata;
230
+ ifr->ifr_data = (caddr_t )&edata;
230
231
memset (&edata, 0 , sizeof (edata));
231
232
edata.cmd = ETHTOOL_GSET;
232
233
You can’t perform that action at this time.
0 commit comments