summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-05-16 19:01:02 +0900
committerSlávek Banko <slavek.banko@axis.cz>2020-05-28 19:26:37 +0200
commit85d158eec59e42b693e5d83109de157435103d10 (patch)
treeb7e0721a76ed1f3da0f2dc01ecc94ffcbfbf1c35 /kcontrol
parentcded6aa77e6b1f31eafcf35c4cd3f8041c09d7d3 (diff)
downloadtdebase-85d158eec59e42b693e5d83109de157435103d10.tar.gz
tdebase-85d158eec59e42b693e5d83109de157435103d10.zip
Change to access ifreq member through macros
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/nics/nic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kcontrol/nics/nic.cpp b/kcontrol/nics/nic.cpp
index 26a270a08..2ff9d2c3c 100644
--- a/kcontrol/nics/nic.cpp
+++ b/kcontrol/nics/nic.cpp
@@ -222,14 +222,14 @@ NICList* findNICs()
result=ioctl(sockfd,SIOCGIFHWADDR,&ifcopy);
if (result==0)
{
- char *n = &ifcopy.ifr_ifru.ifru_hwaddr.sa_data[0];
+ char *n = &ifcopy.ifr_hwaddr.sa_data[0];
tmp->HWaddr = HWaddr2String(n);
}
#elif defined SIOCGENADDR
result=ioctl(sockfd,SIOCGENADDR,&ifcopy);
if (result==0)
{
- char *n = &ifcopy.ifr_ifru.ifru_enaddr[0];
+ char *n = &ifcopy.ifr_enaddr[0];
tmp->HWaddr = HWaddr2String(n);
}
#endif