--- projects/libstatgrab/src/libstatgrab/network_stats.c 2004/02/14 12:22:45 1.42 +++ projects/libstatgrab/src/libstatgrab/network_stats.c 2004/02/14 15:48:42 1.43 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: network_stats.c,v 1.42 2004/02/14 12:22:45 ats Exp $ + * $Id: network_stats.c,v 1.43 2004/02/14 15:48:42 ats Exp $ */ #ifdef HAVE_CONFIG_H @@ -376,7 +376,7 @@ network_iface_stat_t *get_network_iface_stats(int *ent static network_iface_stat_t *network_iface_stats; network_iface_stat_t *network_iface_stat_ptr; static int sizeof_network_iface_stats=0; - static int ifaces; + int ifaces = 0; #ifdef SOLARIS kstat_ctl_t *kc; @@ -396,7 +396,7 @@ network_iface_stat_t *get_network_iface_stats(int *ent char line[8096]; int sock; #endif - ifaces = 0; + #ifdef ALLBSD if(getifaddrs(&net) != 0){ return NULL;