Add some missing initialisations, fixing network activity indicators.

From David Coppa, maintainer timeout.
This commit is contained in:
sthen 2010-03-23 08:53:32 +00:00
parent b6c3802c67
commit 17a2abc696
2 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.14 2009/08/10 06:33:44 kili Exp $
# $OpenBSD: Makefile,v 1.15 2010/03/23 08:53:32 sthen Exp $
COMMENT= little X dock.app network monitor
DISTNAME= wmnet-1.06
PKGNAME= ${DISTNAME}p4
PKGNAME= ${DISTNAME}p5
CATEGORIES= net x11 x11/windowmaker
HOMEPAGE= http://www.katharineosborne.com/wmnet/
MASTER_SITES= http://dockapps.org/files/77/115/

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-drivers_c,v 1.2 2003/04/06 00:43:21 naddy Exp $
$OpenBSD: patch-drivers_c,v 1.3 2010/03/23 08:53:32 sthen Exp $
--- drivers.c.orig Fri May 5 06:34:29 2000
+++ drivers.c Mon Mar 24 19:34:43 2003
@@ -9,35 +9,40 @@
@ -151,7 +151,7 @@ $OpenBSD: patch-drivers_c,v 1.2 2003/04/06 00:43:21 naddy Exp $
#ifdef linux
/* All the data gathering is done in here.
@@ -441,48 +429,58 @@ int updateStats_ppp(void) {
@@ -441,48 +429,60 @@ int updateStats_ppp(void) {
#endif /* linux */
#ifdef USE_KVM
@ -176,6 +176,8 @@ $OpenBSD: patch-drivers_c,v 1.2 2003/04/06 00:43:21 naddy Exp $
int flag = 0;
+ unsigned long tp_in, tp_out, tb_in, tb_out;
+ static unsigned long lp_in, lp_out, lb_in, lb_out;
+ id->rx = False;
+ id->tx = False;
+
+ ifnet = &ifnetbuf;
+