From: Keith Bostic Date: Sat, 5 Jun 1993 08:31:25 +0000 (-0800) Subject: prototype everything X-Git-Tag: BSD-4_4-Snapshot-Development~265 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/74d8a69cb17f04b826192645a7616a00a3615aa2?ds=inline;hp=dd02f8cdb311cbaec1c05bec17dfb42554df850f prototype everything SCCS-vsn: sys/net/if_sl.c 7.32 --- diff --git a/usr/src/sys/net/if_sl.c b/usr/src/sys/net/if_sl.c index dae3c259e9..90730e6bc4 100644 --- a/usr/src/sys/net/if_sl.c +++ b/usr/src/sys/net/if_sl.c @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)if_sl.c 7.31 (Berkeley) %G% + * @(#)if_sl.c 7.32 (Berkeley) %G% */ /* @@ -140,12 +140,15 @@ struct sl_softc sl_softc[NSL]; #define t_sc T_LINEP -int sloutput(), slioctl(), ttrstrt(); extern struct timeval time; +static int slinit __P((struct sl_softc *)); +static struct mbuf *sl_btom __P((struct sl_softc *, int)); + /* * Called from boot code to establish sl interfaces. */ +void slattach() { register struct sl_softc *sc; @@ -194,6 +197,7 @@ slinit(sc) * Attach the given tty to the first available sl unit. */ /* ARGSUSED */ +int slopen(dev, tp) dev_t dev; register struct tty *tp; @@ -225,8 +229,8 @@ slopen(dev, tp) /* * Line specific close routine. * Detach the tty from the sl unit. - * Mimics part of ttyclose(). */ +void slclose(tp) struct tty *tp; { @@ -254,6 +258,7 @@ slclose(tp) * Provide a way to get the sl unit number. */ /* ARGSUSED */ +int sltioctl(tp, cmd, data, flag) struct tty *tp; int cmd; @@ -277,10 +282,12 @@ sltioctl(tp, cmd, data, flag) /* * Queue a packet. Start transmission if not active. */ -sloutput(ifp, m, dst) +int +sloutput(ifp, m, dst, rtp) struct ifnet *ifp; register struct mbuf *m; struct sockaddr *dst; + struct rtentry *rtp; { register struct sl_softc *sc = &sl_softc[ifp->if_unit]; register struct ip *ip; @@ -352,6 +359,7 @@ sloutput(ifp, m, dst) * to send from the interface queue and map it to * the interface before starting output. */ +void slstart(tp) register struct tty *tp; { @@ -527,6 +535,7 @@ sl_btom(sc, len) /* * tty interface receiver interrupt. */ +void slinput(c, tp) register int c; register struct tty *tp; @@ -657,6 +666,7 @@ newpack: /* * Process an ioctl request. */ +int slioctl(ifp, cmd, data) register struct ifnet *ifp; int cmd;