diff options
| author | martin <martin@NetBSD.org> | 2003-06-29 10:37:45 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2003-06-29 10:37:45 +0000 |
| commit | 2edcbf6bb2058561a5789df55629d08099086ceb (patch) | |
| tree | 71a40eeb684c8ddbc8accb972171d18159170cf2 /sys/dev/sun | |
| parent | c101c976d014c47aeccb4526518de241b6584579 (diff) | |
struct proc * -> struct lwp *
Diffstat (limited to 'sys/dev/sun')
| -rw-r--r-- | sys/dev/sun/sunkbd.c | 8 | ||||
| -rw-r--r-- | sys/dev/sun/sunms.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sun/sunkbd.c b/sys/dev/sun/sunkbd.c index c385505aaaa..8fa6bd051ff 100644 --- a/sys/dev/sun/sunkbd.c +++ b/sys/dev/sun/sunkbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunkbd.c,v 1.16 2003/01/19 16:53:53 thorpej Exp $ */ +/* $NetBSD: sunkbd.c,v 1.17 2003/06/29 10:46:04 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -55,7 +55,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.16 2003/01/19 16:53:53 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.17 2003/06/29 10:46:04 martin Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -212,7 +212,7 @@ sunkbdiopen(dev, flags) { struct kbd_sun_softc *k = (void *) dev; struct tty *tp = (struct tty *)k->k_priv; - struct proc *p = curproc ? curproc : &proc0; + struct lwp *l = curlwp ? curlwp : &lwp0; struct termios t; const struct cdevsw *cdev; int error; @@ -223,7 +223,7 @@ sunkbdiopen(dev, flags) /* Open the lower device */ if ((error = (*cdev->d_open)(tp->t_dev, O_NONBLOCK|flags, - 0/* ignored? */, p)) != 0) + 0/* ignored? */, l)) != 0) return (error); /* Now configure it for the console. */ diff --git a/sys/dev/sun/sunms.c b/sys/dev/sun/sunms.c index 1f2e4f7bec6..3e09f4f5c80 100644 --- a/sys/dev/sun/sunms.c +++ b/sys/dev/sun/sunms.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunms.c,v 1.14 2003/05/30 23:34:06 petrov Exp $ */ +/* $NetBSD: sunms.c,v 1.15 2003/06/29 10:46:04 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.14 2003/05/30 23:34:06 petrov Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.15 2003/06/29 10:46:04 martin Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -192,7 +192,7 @@ sunmsiopen(dev, flags) { struct ms_softc *ms = (void *) dev; struct tty *tp = (struct tty *)ms->ms_cs; - struct proc *p = curproc ? curproc : &proc0; + struct lwp *l = curlwp ? curlwp : &lwp0; struct termios t; const struct cdevsw *cdev; int error; @@ -203,7 +203,7 @@ sunmsiopen(dev, flags) /* Open the lower device */ if ((error = (*cdev->d_open)(tp->t_dev, O_NONBLOCK|flags, - 0/* ignored? */, p)) != 0) + 0/* ignored? */, l)) != 0) return (error); /* Now configure it for the console. */ |
