int l, nlwps;
struct kinfo_lwp *kl;
- procstat_t *ps_ptr;
-
ps_list_reset();
/* Open the kvm interface, get a descriptor */
kvm_close(kd);
- for (ps_ptr = list_head_g; ps_ptr != NULL; ps_ptr = ps_ptr->next)
- ps_submit_proc_list(ps_ptr);
+ for (procstat_t *ps = list_head_g; ps != NULL; ps = ps->next) {
+ ps_submit_proc_list(ps);
+ }
return 0;
}
kvm_close(kd);
- for (procstat_t *ps_ptr = list_head_g; ps_ptr != NULL; ps_ptr = ps_ptr->next)
- ps_submit_proc_list(ps_ptr);
+ for (procstat_t *ps = list_head_g; ps != NULL; ps = ps->next) {
+ ps_submit_proc_list(ps);
+ }
return 0;
}
} /* while(readdir) */
closedir(proc);
- for (procstat_t *ps_ptr = list_head_g; ps_ptr != NULL; ps_ptr = ps_ptr->next)
- ps_submit_proc_list(ps_ptr);
+ for (procstat_t *ps = list_head_g; ps != NULL; ps = ps->next) {
+ ps_submit_proc_list(ps);
+ }
read_fork_rate();