diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-14 05:01:40 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-14 05:01:40 +0000 |
commit | 9893ed288d3526a027846815b7a5de547d18b66f (patch) | |
tree | 44313f00e5f0640586565eb2babe7cb0871d8854 /sys/net | |
parent | 31c543ec24c4d00d53565189d9bca5f843a6c377 (diff) | |
download | FreeBSD-src-9893ed288d3526a027846815b7a5de547d18b66f.zip FreeBSD-src-9893ed288d3526a027846815b7a5de547d18b66f.tar.gz |
Convert SLIP to using C99 structure initialization for its struct
linesw.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 3595b77..220e9ec 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -185,8 +185,14 @@ static int sloutput(struct ifnet *, static int slstart(struct tty *); static struct linesw slipdisc = { - slopen, slclose, l_noread, l_nowrite, - sltioctl, slinput, slstart, ttymodem + .l_open = slopen, + .l_close = slclose, + .l_read = l_noread, + .l_write = l_nowrite, + .l_ioctl = sltioctl, + .l_rint = slinput, + .l_start = slstart, + .l_modem = ttymodem }; /* |