Fix a type error in fixing libprocstat to be compatible with vm_map changes.

Approved by: markj
Differential Revision: https://reviews.freebsd.org/D22726
This commit is contained in:
Doug Moore 2019-12-07 18:40:46 +00:00
parent 99b1d4c1e7
commit 7c065540fd

View File

@ -619,7 +619,7 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap
for (entryp = vm_map_entry_first(map);
entryp != &kp->ki_vmspace->vm_map.header;
entryp = vm_map_entry_succ(vmentry)) {
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",