Author: jhb
Date: Wed Nov 30 18:52:30 2011
New Revision: 228162
URL: http://svn.freebsd.org/changeset/base/228162

Log:
  Use C99 initializers for members of evtchn_devsw.
  
  Submitted by: arundel

Modified:
  head/sys/xen/evtchn/evtchn_dev.c

Modified: head/sys/xen/evtchn/evtchn_dev.c
==============================================================================
--- head/sys/xen/evtchn/evtchn_dev.c    Wed Nov 30 18:33:23 2011        
(r228161)
+++ head/sys/xen/evtchn/evtchn_dev.c    Wed Nov 30 18:52:30 2011        
(r228162)
@@ -318,15 +318,14 @@ evtchn_close(struct cdev *dev, int flag,
 }
 
 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",
 };
 
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to