From dde46bf86dfbb6a462eff0f5977b93c59bc20b4c Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 8 Jul 2024 13:18:26 +0000 Subject: [PATCH] Adjust code since FILL_KPROC() got another argument since struct tusage accounting was modified. OK dlg@ jca@ --- lib/libkvm/kvm_proc2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libkvm/kvm_proc2.c b/lib/libkvm/kvm_proc2.c index a9368345dc9..637255a53a9 100644 --- a/lib/libkvm/kvm_proc2.c +++ b/lib/libkvm/kvm_proc2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_proc2.c,v 1.38 2022/02/22 17:35:01 deraadt Exp $ */ +/* $OpenBSD: kvm_proc2.c,v 1.39 2024/07/08 13:18:26 claudio Exp $ */ /* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -295,7 +295,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct process *pr, #define do_copy_str(_d, _s, _l) kvm_read(kd, (u_long)(_s), (_d), (_l)-1) FILL_KPROC(&kp, do_copy_str, &proc, &process, &ucred, &pgrp, process.ps_mainproc, pr, &sess, - vmp, limp, sap, 0, 1); + vmp, limp, sap, &process.ps_tu, 0, 1); /* stuff that's too painful to generalize */ kp.p_ppid = parent_pid; @@ -388,7 +388,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct process *pr, } FILL_KPROC(&kp, do_copy_str, &proc, &process, &ucred, &pgrp, p, pr, &sess, vmp, limp, sap, - 1, 1); + &proc.p_tu, 1, 1); /* see above */ kp.p_ppid = parent_pid; -- 2.20.1