diff options
author | OBATA Akio <[email protected]> | 2020-05-16 19:01:02 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-28 19:26:37 +0200 |
commit | 85d158eec59e42b693e5d83109de157435103d10 (patch) | |
tree | b7e0721a76ed1f3da0f2dc01ecc94ffcbfbf1c35 | |
parent | cded6aa77e6b1f31eafcf35c4cd3f8041c09d7d3 (diff) | |
download | tdebase-85d158eec59e42b693e5d83109de157435103d10.tar.gz tdebase-85d158eec59e42b693e5d83109de157435103d10.zip |
Change to access ifreq member through macros
Signed-off-by: OBATA Akio <[email protected]>
-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 |