summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
committerphk <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
commit0ae911eb0e57eebb61c50c02ddf69aa67ed19599 (patch)
tree4e91d5779ffebe1d75e975aa4450f35f965430eb /sys/fs
parente58d97a666e757e8429a219da05f88a51554c32c (diff)
downloadFreeBSD-src-0ae911eb0e57eebb61c50c02ddf69aa67ed19599.zip
FreeBSD-src-0ae911eb0e57eebb61c50c02ddf69aa67ed19599.tar.gz
Gigacommit to improve device-driver source compatibility between
branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/coda/coda_fbsd.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/fs/coda/coda_fbsd.c b/sys/fs/coda/coda_fbsd.c
index 6907c63..23ce5e4 100644
--- a/sys/fs/coda/coda_fbsd.c
+++ b/sys/fs/coda/coda_fbsd.c
@@ -66,19 +66,14 @@
#define VC_DEV_NO 93
static struct cdevsw codadevsw = {
- /* open */ vc_nb_open,
- /* close */ vc_nb_close,
- /* read */ vc_nb_read,
- /* write */ vc_nb_write,
- /* ioctl */ vc_nb_ioctl,
- /* poll */ vc_nb_poll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "Coda",
- /* maj */ VC_DEV_NO,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = vc_nb_open,
+ .d_close = vc_nb_close,
+ .d_read = vc_nb_read,
+ .d_write = vc_nb_write,
+ .d_ioctl = vc_nb_ioctl,
+ .d_poll = vc_nb_poll,
+ .d_name = "Coda",
+ .d_maj = VC_DEV_NO,
};
int vcdebug = 1;
OpenPOWER on IntegriCloud