Patch up some long lines introduced in previous commit.

This commit is contained in:
Peter Wemm 2002-02-07 22:26:51 +00:00
parent 2850a06d42
commit 6e948886d3

View File

@ -170,6 +170,7 @@ alpha_set_uac(struct thread *td, char *args)
int error;
unsigned long uac;
struct proc *p;
struct thread *td;
error = copyin(args, &uac, sizeof(uac));
if (error)
@ -180,8 +181,9 @@ alpha_set_uac(struct thread *td, char *args)
if (p->p_pptr) {
PROC_LOCK(p->p_pptr);
/* XXXKSE which threads? */
FIRST_THREAD_IN_PROC(p->p_pptr)->td_md.md_flags &= ~MDP_UAC_MASK;
FIRST_THREAD_IN_PROC(p->p_pptr)->td_md.md_flags |= uac & MDP_UAC_MASK;
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;
PROC_UNLOCK(p->p_pptr);
}
PROC_UNLOCK(p);
@ -192,6 +194,7 @@ static int
alpha_get_uac(struct thread *td, char *args)
{
struct proc *p;
struct thread *td;
int error;
unsigned long uac;
@ -201,7 +204,8 @@ alpha_get_uac(struct thread *td, char *args)
if (p->p_pptr) {
PROC_LOCK(p->p_pptr);
/* XXXKSE which threads? */
uac = FIRST_THREAD_IN_PROC(p->p_pptr)->td_md.md_flags & MDP_UAC_MASK;
td = FIRST_THREAD_IN_PROC(p->p_pptr);
uac = td->td_md.md_flags & MDP_UAC_MASK;
PROC_UNLOCK(p->p_pptr);
PROC_UNLOCK(p);
error = copyout(&uac, args, sizeof(uac));