From 0ae911eb0e57eebb61c50c02ddf69aa67ed19599 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Mar 2003 12:15:54 +0000 Subject: 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) --- sys/coda/coda_fbsd.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'sys/coda/coda_fbsd.c') diff --git a/sys/coda/coda_fbsd.c b/sys/coda/coda_fbsd.c index 6907c63..23ce5e4 100644 --- a/sys/coda/coda_fbsd.c +++ b/sys/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; -- cgit v1.1