summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-07-06 16:27:59 +0000
committerkn <kn@openbsd.org>2020-07-06 16:27:59 +0000
commit75fa0b3707ed6b7afd2aa20a4ec7153eea4fff52 (patch)
treed5eb80ecc597fb5a2924d2225a264314aa32c836
parentHide most of the contents behind #ifdef _KERNEL. Reorganize the file a (diff)
downloadwireguard-openbsd-75fa0b3707ed6b7afd2aa20a4ec7153eea4fff52.tar.xz
wireguard-openbsd-75fa0b3707ed6b7afd2aa20a4ec7153eea4fff52.zip
Use mnemonic KERN_PROC_ALL not literal zero
No object change.
-rw-r--r--usr.bin/top/machine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 13c0ae6e817..5c63cd56912 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.106 2020/06/26 20:55:55 kn Exp $ */
+/* $OpenBSD: machine.c,v 1.107 2020/07/06 16:27:59 kn Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -314,7 +314,8 @@ struct kinfo_proc *
getprocs(int op, int arg, int *cnt)
{
size_t size;
- int mib[6] = {CTL_KERN, KERN_PROC, 0, 0, sizeof(struct kinfo_proc), 0};
+ int mib[6] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL, 0,
+ sizeof(struct kinfo_proc), 0};
static int maxslp_mib[] = {CTL_VM, VM_MAXSLP};
static struct kinfo_proc *procbase;
int st;