[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] convert initializers to C99 initializers



# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 864d936a04827f9f02436cbea46b69644c0e5082
# Parent  aa1adbeecfcdafeb2cea4d4991368ff168a9329b
convert initializers to C99 initializers

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r aa1adbeecfcd -r 864d936a0482 
linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c        Sat Sep 10 
14:24:39 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c        Sat Sep 10 
14:38:01 2005
@@ -182,9 +182,9 @@
 #endif
 
 static struct console kcons_info = {
-    device:  kcons_device,
-    flags:   CON_PRINTBUFFER,
-    index:   -1
+    .device    = kcons_device,
+    .flags     = CON_PRINTBUFFER,
+    .index     = -1,
 };
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
diff -r aa1adbeecfcd -r 864d936a0482 
linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c
--- a/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c  Sat Sep 10 14:24:39 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c  Sat Sep 10 14:38:01 2005
@@ -356,14 +356,14 @@
 }
 
 static struct file_operations evtchn_fops = {
-    owner:    THIS_MODULE,
-    read:     evtchn_read,
-    write:    evtchn_write,
-    ioctl:    evtchn_ioctl,
-    poll:     evtchn_poll,
-    fasync:   evtchn_fasync,
-    open:     evtchn_open,
-    release:  evtchn_release
+    .owner   = THIS_MODULE,
+    .read    = evtchn_read,
+    .write   = evtchn_write,
+    .ioctl   = evtchn_ioctl,
+    .poll    = evtchn_poll,
+    .fasync  = evtchn_fasync,
+    .open    = evtchn_open,
+    .release = evtchn_release,
 };
 
 static struct miscdevice evtchn_miscdev = {
diff -r aa1adbeecfcd -r 864d936a0482 
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
--- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Sat Sep 10 
14:24:39 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Sat Sep 10 
14:38:01 2005
@@ -241,8 +241,8 @@
 }
 
 static struct file_operations privcmd_file_ops = {
-    ioctl : privcmd_ioctl,
-    mmap:   privcmd_mmap
+    .ioctl = privcmd_ioctl,
+    .mmap  = privcmd_mmap,
 };
 
 
diff -r aa1adbeecfcd -r 864d936a0482 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c      Sat Sep 10 
14:24:39 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c      Sat Sep 10 
14:38:01 2005
@@ -168,9 +168,9 @@
 }
 
 static struct file_operations xenbus_dev_file_ops = {
-       ioctl: xenbus_dev_ioctl,
-       open: xenbus_dev_open,
-       release: xenbus_dev_release
+       .ioctl = xenbus_dev_ioctl,
+       .open = xenbus_dev_open,
+       .release = xenbus_dev_release,
 };
 
 static int __init

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.