From 500e41bd7127ee03db75cd2a3704b8025c24e345 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 8 May 1999 06:40:31 +0000 Subject: I got tired of seeing all the cdevsw[major(foo)] all over the place. Made a new (inline) function devsw(dev_t dev) and substituted it. Changed to the BDEV variant to this format as well: bdevsw(dev_t dev) DEVFS will eventually benefit from this change too. --- sys/net/ppp_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 7f91fda..737c581 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -70,7 +70,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: ppp_tty.c,v 1.38 1999/01/17 20:53:47 peter Exp $ */ +/* $Id: ppp_tty.c,v 1.39 1999/04/27 11:17:07 phk Exp $ */ #include "ppp.h" #if NPPP > 0 @@ -896,7 +896,7 @@ pppinput(c, tp) if (c == tp->t_cc[VSTOP] && tp->t_cc[VSTOP] != _POSIX_VDISABLE) { if ((tp->t_state & TS_TTSTOP) == 0) { tp->t_state |= TS_TTSTOP; - (*cdevsw[major(tp->t_dev)]->d_stop)(tp, 0); + (*devsw(tp->t_dev)->d_stop)(tp, 0); } return 0; } -- cgit v1.1