aboutsummaryrefslogtreecommitdiff
path: root/lib/libprocstat/libprocstat.c
diff options
context:
space:
mode:
authorDoug Moore <dougm@FreeBSD.org>2019-12-07 18:16:35 +0000
committerDoug Moore <dougm@FreeBSD.org>2019-12-07 18:16:35 +0000
commit99b1d4c1e7dab7230ffbe6e65d66e6cfb9f0c0d2 (patch)
tree7b28f692c7d03035f8fa184372fc204301f06a59 /lib/libprocstat/libprocstat.c
parent0cc9fb7551f53d52ec1e45c983f4646a1c1f089b (diff)
downloadsrc-99b1d4c1e7dab7230ffbe6e65d66e6cfb9f0c0d2.tar.gz
src-99b1d4c1e7dab7230ffbe6e65d66e6cfb9f0c0d2.zip
Notes
Diffstat (limited to 'lib/libprocstat/libprocstat.c')
-rw-r--r--lib/libprocstat/libprocstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
index abba033a8c52..37432b45a11a 100644
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -617,9 +617,9 @@ do_mmapped:
}
map = &vmspace.vm_map;
- for (entryp = map->header.next;
+ for (entryp = vm_map_entry_first(map);
entryp != &kp->ki_vmspace->vm_map.header;
- entryp = vmentry.next) {
+ entryp = vm_map_entry_succ(vmentry)) {
if (!kvm_read_all(kd, (unsigned long)entryp, &vmentry,
sizeof(vmentry))) {
warnx("can't read vm_map_entry at %p",