From e3068f466a11315195f1e35baafbf355b8167e59 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 12 Aug 2009 09:42:28 -0700 Subject: [PATCH] s/ift_name/ifr_name/g --- src/os/darwin/darwin_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 62a14ea4..a72b5e99 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2499,8 +2499,8 @@ static int has_ifaddr(char *name, size_t name_len) if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { return errno; } - strncpy(ifr.ift_name, name, MIN(sizeof(ifr.ift_name) - 1, name_len)); - ifr.ift_name[MIN(sizeof(ifr.ift_name) - 1, name_len)] = '\0'; + strncpy(ifr.ifr_name, name, MIN(sizeof(ifr.ifr_name) - 1, name_len)); + ifr.ifr_name[MIN(sizeof(ifr.ifr_name) - 1, name_len)] = '\0'; if (ioctl(sock, SIOCGIFADDR, &ifr) == 0) { status = SIGAR_OK; }