diff options
author | OBATA Akio <obache@wizdas.com> | 2020-05-16 19:01:02 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-28 19:33:51 +0200 |
commit | 223051e503d04855d6841941db2fd2f92c264af7 (patch) | |
tree | e5685dd9d3b97b27fb2e5ddd2bccbd40c9d6be48 /kcontrol/nics/nic.cpp | |
parent | d3b22aa641789184fc2e3cb139a6d00d6bb19ab2 (diff) | |
download | tdebase-223051e503d04855d6841941db2fd2f92c264af7.tar.gz tdebase-223051e503d04855d6841941db2fd2f92c264af7.zip |
Change to access ifreq member through macros
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 85d158eec59e42b693e5d83109de157435103d10)
Diffstat (limited to 'kcontrol/nics/nic.cpp')
-rw-r--r-- | kcontrol/nics/nic.cpp | 4 |
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 |