LCDproc development and user support list

Text archives Help


[Lcdproc] FIX: lcdproc iface.c


Chronological Thread 
  • From: bsdfan AT nurfuerspam.de (Markus Dolze)
  • Subject: [Lcdproc] FIX: lcdproc iface.c
  • Date: Wed May 3 06:19:02 2006

Fix build on FreeBSD.

Markus
Index: clients/lcdproc/iface.c
===================================================================
RCS file: /cvsroot/lcdproc/lcdproc/clients/lcdproc/iface.c,v
retrieving revision 1.2
diff -u -r1.2 iface.c
--- clients/lcdproc/iface.c 28 Apr 2006 09:26:40 -0000 1.2
+++ clients/lcdproc/iface.c 3 May 2006 06:17:16 -0000
@@ -546,7 +546,7 @@
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 @@
}
}
/* 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");



Archive powered by MHonArc 2.6.18.

Top of page