diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-14 05:32:55 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-14 05:32:55 +0000 |
commit | 28c501456896778913d3d428684f6e791082f3bf (patch) | |
tree | 558d3b9e2a1f9c5dc97edc612792373d39a4b72c | |
parent | 395ff73b0a60e3e88bc18bf5f9f3e274047842a6 (diff) | |
download | FreeBSD-src-28c501456896778913d3d428684f6e791082f3bf.zip FreeBSD-src-28c501456896778913d3d428684f6e791082f3bf.tar.gz |
Switch snoop device to using C99 initialization for struct linesw.
-rw-r--r-- | sys/dev/snp/snp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 6544810..3d4b2d4 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -52,8 +52,14 @@ static struct cdevsw snp_cdevsw = { }; static struct linesw snpdisc = { - ttyopen, snplclose, ttread, snplwrite, - l_nullioctl, ttyinput, ttstart, ttymodem + .l_open = ttyopen, + .l_close = snplclose, + .l_read = ttread, + .l_write = snplwrite, + .l_ioctl = l_nullioctl, + .l_rint = ttyinput, + .l_start = ttstart, + .l_modem = ttymodem }; /* |