summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_file2.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-01-20 04:27:32 +0000
committerguenther <guenther@openbsd.org>2014-01-20 04:27:32 +0000
commita0a1a1a19f9d79bfd9bb4a87642b99088e474756 (patch)
tree10a88d01a23693ea324fa1e2033729c77601375e /lib/libkvm/kvm_file2.c
parentRemove unused variable. (diff)
downloadwireguard-openbsd-a0a1a1a19f9d79bfd9bb4a87642b99088e474756.tar.xz
wireguard-openbsd-a0a1a1a19f9d79bfd9bb4a87642b99088e474756.zip
p_textvp moved from struct proc to struct process
Diffstat (limited to 'lib/libkvm/kvm_file2.c')
-rw-r--r--lib/libkvm/kvm_file2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c
index 799dbe20968..b970247380e 100644
--- a/lib/libkvm/kvm_file2.c
+++ b/lib/libkvm/kvm_file2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file2.c,v 1.31 2013/11/16 00:37:11 guenther Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.32 2014/01/20 04:27:32 guenther Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -399,11 +399,11 @@ kvm_deadfile_byid(kvm_t *kd, int op, int arg, size_t esize, int *cnt)
}
proc.p_fd = &filed;
- if (proc.p_textvp) {
+ if (process.ps_textvp) {
if (buflen < esize)
goto done;
- if (fill_file(kd, &kf, NULL, 0, proc.p_textvp, &proc,
- KERN_FILE_TEXT, pid) == -1)
+ if (fill_file(kd, &kf, NULL, 0, process.ps_textvp,
+ &proc, KERN_FILE_TEXT, pid) == -1)
goto cleanup;
memcpy(where, &kf, esize);
where += esize;