s/ift_name/ifr_name/g

This commit is contained in:
Doug MacEachern 2009-08-12 09:42:28 -07:00
parent 079dd9b09f
commit e3068f466a
1 changed files with 2 additions and 2 deletions

View File

@ -2499,8 +2499,8 @@ static int has_ifaddr(char *name, size_t name_len)
if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
return errno; return errno;
} }
strncpy(ifr.ift_name, name, MIN(sizeof(ifr.ift_name) - 1, name_len)); strncpy(ifr.ifr_name, name, MIN(sizeof(ifr.ifr_name) - 1, name_len));
ifr.ift_name[MIN(sizeof(ifr.ift_name) - 1, name_len)] = '\0'; ifr.ifr_name[MIN(sizeof(ifr.ifr_name) - 1, name_len)] = '\0';
if (ioctl(sock, SIOCGIFADDR, &ifr) == 0) { if (ioctl(sock, SIOCGIFADDR, &ifr) == 0) {
status = SIGAR_OK; status = SIGAR_OK;
} }