DORMANTno replies

[PATCH] C99 designated initializer for net/atm/lec.c

From: Art Haas <hidden>
Date: 2002-10-07 22:41:10

Hi.

Here's a trivial patch for net/atm/lec.c to switch it to use C99
designated initializers. The patch is against 2.5.41.

Art Haas
--- linux-2.5.41/net/atm/lec.c.old	2002-07-05 18:42:03.000000000 -0500
+++ linux-2.5.41/net/atm/lec.c	2002-10-07 15:52:02.000000000 -0500
@@ -553,8 +553,8 @@
 }
 
 static struct atmdev_ops lecdev_ops = {
-        close:	lec_atm_close,
-        send:	lec_atm_send
+        .close	= lec_atm_close,
+        .send	= lec_atm_send
 };
 
 static struct atm_dev lecatm_dev = {
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help