diff options
author | bde <bde@FreeBSD.org> | 1995-11-05 20:25:59 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-05 20:25:59 +0000 |
commit | d461b5899dc0ba4686df948588f1fb15f2133fb7 (patch) | |
tree | 0502a1ef0d7f58dedecd38161993cff25de03939 /sys/net | |
parent | 1bebc101f8240ac40ce3c1d39f59089ad85ddf1f (diff) | |
download | FreeBSD-src-d461b5899dc0ba4686df948588f1fb15f2133fb7.zip FreeBSD-src-d461b5899dc0ba4686df948588f1fb15f2133fb7.tar.gz |
Replaced bogus macros for entry points to unconfigured line disciplines
by functions.
tty_conf.c:
Cleaned up formatting of tables.
Removed another ARGSUSED for consistency.
conf.h:
Introduced typedefs for line discipline functions.
Backed out most of previous revision (it is done elsewhere).
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 67bf528..acfa65e 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.32 1995/09/17 23:38:29 ache Exp $ + * $Id: if_sl.c,v 1.33 1995/10/31 19:22:30 peter Exp $ */ /* @@ -189,11 +189,10 @@ static struct mbuf *sl_btom __P((struct sl_softc *, int)); static timeout_t sl_keepalive; static timeout_t sl_outfill; -#define ttyerrio ((int (*) __P((struct tty *, struct uio *, int)))enodev) - -static struct linesw slipdisc = - { slopen, slclose, ttyerrio, ttyerrio, sltioctl, - slinput, slstart, ttymodem }; +static struct linesw slipdisc = { + slopen, slclose, l_noread, l_nowrite, + sltioctl, slinput, slstart, ttymodem +}; /* * Called from boot code to establish sl interfaces. |