diff options
author | peter <peter@FreeBSD.org> | 2002-02-08 08:56:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-02-08 08:56:01 +0000 |
commit | 3589cfc9929e9a7140446f114e94ea86c45b6398 (patch) | |
tree | e98fa20b4faea7eccefce0008eadbe917787c580 /sys/alpha | |
parent | 2a6db49cc938300e82537cfbb7ff5ffa68e5ed77 (diff) | |
download | FreeBSD-src-3589cfc9929e9a7140446f114e94ea86c45b6398.zip FreeBSD-src-3589cfc9929e9a7140446f114e94ea86c45b6398.tar.gz |
Bah, I managed to turn cosmetic things into real bugs. Fix shadowed
variable declarations. :-( Definately not my day today.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/sys_machdep.c | 14 | ||||
-rw-r--r-- | sys/alpha/linux/linux_machdep.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/alpha/alpha/sys_machdep.c b/sys/alpha/alpha/sys_machdep.c index 0d9f5fe..7f6c270 100644 --- a/sys/alpha/alpha/sys_machdep.c +++ b/sys/alpha/alpha/sys_machdep.c @@ -170,7 +170,7 @@ alpha_set_uac(struct thread *td, char *args) int error; unsigned long uac; struct proc *p; - struct thread *td; + struct thread *td2; error = copyin(args, &uac, sizeof(uac)); if (error) @@ -181,9 +181,9 @@ alpha_set_uac(struct thread *td, char *args) if (p->p_pptr) { PROC_LOCK(p->p_pptr); /* XXXKSE which threads? */ - td = FIRST_THREAD_IN_PROC(p->p_pptr); - td->td_md.md_flags &= ~MDP_UAC_MASK; - td->td_md.md_flags |= uac & MDP_UAC_MASK; + td2 = FIRST_THREAD_IN_PROC(p->p_pptr); + td2->td_md.md_flags &= ~MDP_UAC_MASK; + td2->td_md.md_flags |= uac & MDP_UAC_MASK; PROC_UNLOCK(p->p_pptr); } PROC_UNLOCK(p); @@ -194,7 +194,7 @@ static int alpha_get_uac(struct thread *td, char *args) { struct proc *p; - struct thread *td; + struct thread *td2; int error; unsigned long uac; @@ -204,8 +204,8 @@ alpha_get_uac(struct thread *td, char *args) if (p->p_pptr) { PROC_LOCK(p->p_pptr); /* XXXKSE which threads? */ - td = FIRST_THREAD_IN_PROC(p->p_pptr); - uac = td->td_md.md_flags & MDP_UAC_MASK; + td2 = FIRST_THREAD_IN_PROC(p->p_pptr); + uac = td2->td_md.md_flags & MDP_UAC_MASK; PROC_UNLOCK(p->p_pptr); PROC_UNLOCK(p); error = copyout(&uac, args, sizeof(uac)); diff --git a/sys/alpha/linux/linux_machdep.c b/sys/alpha/linux/linux_machdep.c index 12a2160..51d68f1 100644 --- a/sys/alpha/linux/linux_machdep.c +++ b/sys/alpha/linux/linux_machdep.c @@ -127,7 +127,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args) { int error, ff = RFPROC | RFSTOPPED; struct proc *p2; - struct thread *td; + struct thread *td2; int exit_signal; vm_offset_t start; @@ -167,8 +167,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) PROC_LOCK(p2); p2->p_sigparent = exit_signal; PROC_UNLOCK(p2); - td = FIRST_THREAD_IN_PROC(p2); - td->td_pcb->pcb_hw.apcb_usp = (unsigned long)args->stack; + td2 = FIRST_THREAD_IN_PROC(p2); + td2->td_pcb->pcb_hw.apcb_usp = (unsigned long)args->stack; #ifdef DEBUG if (ldebug(clone)) |