summaryrefslogtreecommitdiff
path: root/devel/libgtop/patches/patch-aj
blob: 22f03e9e628df29e9831ad76b279e520f8f3b795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aj,v 1.4 1999/11/02 23:16:25 tron Exp $

--- sysdeps/freebsd/cpu.c.orig	Thu May 27 16:03:55 1999
+++ sysdeps/freebsd/cpu.c	Wed Nov  3 00:05:27 1999
@@ -51,7 +51,7 @@
 void
 glibtop_init_cpu_p (glibtop *server)
 {
-	if (kvm_nlist (server->machine.kd, nlst) != 0) {
+	if (kvm_nlist (server->machine.kd, nlst) < 0) {
 		glibtop_warn_io_r (server, "kvm_nlist (cpu)");
 		return;
 	}