summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-07-14 05:32:55 +0000
committerrwatson <rwatson@FreeBSD.org>2004-07-14 05:32:55 +0000
commit28c501456896778913d3d428684f6e791082f3bf (patch)
tree558d3b9e2a1f9c5dc97edc612792373d39a4b72c
parent395ff73b0a60e3e88bc18bf5f9f3e274047842a6 (diff)
downloadFreeBSD-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.c10
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
};
/*
OpenPOWER on IntegriCloud