touched up some wrong type casting

This commit is contained in:
2025-02-11 00:00:59 +09:00
parent 867e8bb63e
commit 523b922be4
3 changed files with 6 additions and 6 deletions

View File

@ -756,7 +756,7 @@ static void get_moreinfo (int s, hawk_ifcfg_t* cfg, struct ifreq* ifr)
struct ethtool_value ev;
HAWK_MEMSET (&ev, 0, HAWK_SIZEOF(ev));
ev.cmd= ETHTOOL_GLINK;
ifr->ifr_data = &ev;
ifr->ifr_data = (void*)&ev;
if (ioctl(s, SIOCETHTOOL, ifr) >= 0) cfg->flags |= ev.data? HAWK_IFCFG_LINKUP: HAWK_IFCFG_LINKDOWN;
}
#endif