OpenBSD: kinfo_proc2 -> kinfo_proc

The kinfo_proc2 interface has been removed from OpenBSD (it was
deprecated anyway), so use the correct replacement: kinfo_proc.

https://bugzilla.gnome.org/show_bug.cgi?id=667591
This commit is contained in:
Antoine Jacoutot
2012-01-22 12:47:49 +01:00
parent aa7572abfd
commit b11aa1517e
9 changed files with 19 additions and 19 deletions

View File

@@ -96,7 +96,7 @@ void
glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
pid_t pid)
{
struct kinfo_proc2 *pinfo;
struct kinfo_proc *pinfo;
int count;
@@ -111,7 +111,7 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
if (pid == 0) return;
/* Get the process data */
pinfo = kvm_getproc2 (server->machine.kd, KERN_PROC_PID, pid,
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
sizeof (*pinfo), &count);
if ((pinfo == NULL) || (count < 1)) {
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);