Use C99 initializers for members of evtchn_devsw.

Submitted by:	arundel
This commit is contained in:
John Baldwin 2011-11-30 18:52:30 +00:00
parent 4889af2063
commit 886c9e7e09

View File

@ -318,15 +318,14 @@ evtchn_close(struct cdev *dev, int flag, int otyp, struct thread *td __unused)
}
static struct cdevsw evtchn_devsw = {
d_version: D_VERSION,
d_open: evtchn_open,
d_close: evtchn_close,
d_read: evtchn_read,
d_write: evtchn_write,
d_ioctl: evtchn_ioctl,
d_poll: evtchn_poll,
d_name: "evtchn",
d_flags: 0,
.d_version = D_VERSION,
.d_open = evtchn_open,
.d_close = evtchn_close,
.d_read = evtchn_read,
.d_write = evtchn_write,
.d_ioctl = evtchn_ioctl,
.d_poll = evtchn_poll,
.d_name = "evtchn",
};