From 455939ab5b10b17bb4832c2f98006a5025480065 Mon Sep 17 00:00:00 2001 From: marschap Date: Thu, 4 May 2006 17:24:36 +0000 Subject: [PATCH] fix by M. Dolze for iface in FreeBSD --- clients/lcdproc/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c index a91879f..fbb2077 100644 --- a/clients/lcdproc/iface.c +++ b/clients/lcdproc/iface.c @@ -546,7 +546,7 @@ get_iface_stats (IfaceInfo *interface) break; } /* check if its interface name matches */ - if (strcmp(ifmd.ifmd_name, iface_name) == 0) { + if (strcmp(ifmd.ifmd_name, interface->name) == 0) { interface->last_online = time(NULL); /* save actual time */ if ((ifmd.ifmd_flags & IFF_UP) == IFF_UP) @@ -568,7 +568,7 @@ get_iface_stats (IfaceInfo *interface) } } /* if we are here there is no interface with the given name */ - fprintf(stderr, "There is no interface named %s\n", iface_name); + fprintf(stderr, "There is no interface named %s\n", interface->name); return 0; } else { perror("get_iface_stats");