summaryrefslogtreecommitdiff
path: root/usr.bin/top/utils.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2011-04-10 03:21:00 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2011-04-10 03:21:00 +0000
commitff2998acd8d7dd47cb849ba5efd6f2f2b46423af (patch)
tree7c5fe667dbfd41fa720d0690392d481119fa2530 /usr.bin/top/utils.c
parent871b6512afed34a138792a3efbd3b870579c1c9e (diff)
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want "ZAP!" deraadt@
Diffstat (limited to 'usr.bin/top/utils.c')
-rw-r--r--usr.bin/top/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c
index 4a1f2a7e4ef..b0a19d63507 100644
--- a/usr.bin/top/utils.c
+++ b/usr.bin/top/utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utils.c,v 1.22 2010/01/29 00:36:09 tedu Exp $ */
+/* $OpenBSD: utils.c,v 1.23 2011/04/10 03:20:59 guenther Exp $ */
/*
* Top users/processes display for Unix
@@ -341,7 +341,7 @@ format_k(int amt)
int
find_pid(pid_t pid)
{
- struct kinfo_proc2 *pbase, *cur;
+ struct kinfo_proc *pbase, *cur;
int nproc;
if ((pbase = getprocs(KERN_PROC_KTHREAD, 0, &nproc)) == NULL)