diff options
author | scrappy <scrappy@FreeBSD.org> | 1996-03-28 14:31:42 +0000 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 1996-03-28 14:31:42 +0000 |
commit | 85dc41d2a0bf4b66009df220e45b05172b70a077 (patch) | |
tree | 025b969f51a7a68ecbdccfd2bc8335f918bc4215 /sys/kern/tty_tty.c | |
parent | 3bdc572dfd26a9811e5a652ddd4af48bd11f0e24 (diff) | |
download | FreeBSD-src-85dc41d2a0bf4b66009df220e45b05172b70a077.zip FreeBSD-src-85dc41d2a0bf4b66009df220e45b05172b70a077.tar.gz |
Switched from using devfs_add_devsw() to devfs_add_devswf()
Reviewed by: julian@freebsd.org
Diffstat (limited to 'sys/kern/tty_tty.c')
-rw-r--r-- | sys/kern/tty_tty.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index 6440014..3139f5a 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_tty.c 8.2 (Berkeley) 9/23/93 - * $Id: tty_tty.c,v 1.9 1995/12/08 23:21:37 phk Exp $ + * $Id: tty_tty.c,v 1.10 1995/12/22 15:57:31 bde Exp $ */ /* @@ -173,7 +173,9 @@ cttyselect(dev, flag, p) } static ctty_devsw_installed = 0; +#ifdef DEVFS static void *ctty_devfs_token; +#endif static void ctty_drvinit(void *unused) @@ -185,8 +187,9 @@ ctty_drvinit(void *unused) cdevsw_add(&dev,&ctty_cdevsw,NULL); ctty_devsw_installed = 1; #ifdef DEVFS - ctty_devfs_token = devfs_add_devsw( "/", "tty", - &ctty_cdevsw, 0, DV_CHR, 0, 0, 0666); + ctty_devfs_token = + devfs_add_devswf(&ctty_cdevsw, 0, DV_CHR, 0, 0, + 0666, "tty"); #endif } } |