aboutsummaryrefslogtreecommitdiff
path: root/networking/zcip.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/zcip.c')
-rw-r--r--networking/zcip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/zcip.c b/networking/zcip.c
index de4ee0b1a..281f551d7 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -247,9 +247,7 @@ int zcip_main(int argc, char **argv)
247 // get the interface's ethernet address 247 // get the interface's ethernet address
248 //memset(&ifr, 0, sizeof(ifr)); 248 //memset(&ifr, 0, sizeof(ifr));
249 strncpy(ifr.ifr_name, intf, sizeof(ifr.ifr_name)); 249 strncpy(ifr.ifr_name, intf, sizeof(ifr.ifr_name));
250 if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) { 250 xioctl(fd, SIOCGIFHWADDR, &ifr);
251 bb_perror_msg_and_die("get ethernet address");
252 }
253 memcpy(&eth_addr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN); 251 memcpy(&eth_addr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN);
254 252
255 // start with some stable ip address, either a function of 253 // start with some stable ip address, either a function of