summaryrefslogtreecommitdiff
path: root/usr/src/lib/libproc/sparc/Pisadep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libproc/sparc/Pisadep.c')
-rw-r--r--usr/src/lib/libproc/sparc/Pisadep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/lib/libproc/sparc/Pisadep.c b/usr/src/lib/libproc/sparc/Pisadep.c
index c3bbd99788..29575d05ae 100644
--- a/usr/src/lib/libproc/sparc/Pisadep.c
+++ b/usr/src/lib/libproc/sparc/Pisadep.c
@@ -188,11 +188,11 @@ read_gwin(struct ps_prochandle *P, struct rwindow *rwp, uintptr_t sp)
if (P->state == PS_DEAD) {
core_info_t *core = P->data;
- lwp_info_t *lwp = list_next(&core->core_lwp_head);
- uint_t n;
+ lwp_info_t *lwp;
int i;
- for (n = 0; n < core->core_nlwp; n++, lwp = list_next(lwp)) {
+ for (lwp = list_head(&core->core_lwp_head); lwp != NULL;
+ lwp = list_next(&core->core_lwp_head, lwp)) {
gwindows_t *gwin = lwp->lwp_gwins;
if (gwin == NULL)
@@ -253,7 +253,7 @@ ucontext_n_to_prgregs(const ucontext_t *src, prgregset_t dst)
int
Pstack_iter(struct ps_prochandle *P, const prgregset_t regs,
- proc_stack_f *func, void *arg)
+ proc_stack_f *func, void *arg)
{
prgreg_t *prevfp = NULL;
uint_t pfpsize = 0;