pkgsrc/x11/kdebase3/patches/patch-fc
drochner 79498ab6e3 Add some glue code so that the code which collects statistics for
kdesysguard is not wasted.
(Not that I consider this very useful, but showing just "UNKNOWN COMMAND"
looks bad.)
2003-06-05 21:29:32 +00:00

27 lines
574 B
Text

$NetBSD: patch-fc,v 1.1 2003/06/05 21:29:33 drochner Exp $
--- ksysguard/ksysguardd/NetBSD/netdev.c.orig 2003-06-05 20:10:31.000000000 +0200
+++ ksysguard/ksysguardd/NetBSD/netdev.c 2003-06-05 20:11:08.000000000 +0200
@@ -270,12 +270,12 @@
NDreg(0);
}
-void updateNetDev(void) {
+int updateNetDev(void) {
NetDevInfo *p, *q;
int n;
if (-1==(n = readSys(0)))
- return;
+ return (0);
NetDevCnt = n;
/*fixme: assumes the interfaces are in the same order each time */
@@ -290,6 +290,7 @@
}
}
+ return (0);
}
void checkNetDev(void) {