[PATCH] C99 initializer in drivers/net/arcnet

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

 



Hello.

This converts more structure initializers in drivers/net/arcnet to c99.
Patch against 2.5.69.

Thanks.

Index: drivers/net/arcnet/arc-rawmode.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/net/arcnet/arc-rawmode.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 arc-rawmode.c
--- drivers/net/arcnet/arc-rawmode.c	7 Oct 2002 10:21:43 -0000	1.1.1.1
+++ drivers/net/arcnet/arc-rawmode.c	15 May 2003 18:14:34 -0000
@@ -45,11 +45,11 @@
 
 struct ArcProto rawmode_proto =
 {
-	'r',
-	XMTU,
-	rx,
-	build_header,
-	prepare_tx
+	.suffix		= 'r',
+	.mtu		= XMTU,
+	.rx		= rx,
+	.build_header	= build_header,
+	.prepare_tx	= prepare_tx,
 };
 
 
Index: drivers/net/arcnet/arcnet.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/net/arcnet/arcnet.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 arcnet.c
--- drivers/net/arcnet/arcnet.c	14 Apr 2003 04:32:39 -0000	1.1.1.2
+++ drivers/net/arcnet/arcnet.c	15 May 2003 18:14:34 -0000
@@ -73,11 +73,11 @@
 
 struct ArcProto arc_proto_null =
 {
-	'?',
-	XMTU,
-	null_rx,
-	null_build_header,
-	null_prepare_tx
+	.suffix		= '?',
+	.mtu		= XMTU,
+	.rx		= null_rx,
+	.build_header	= null_build_header,
+	.prepare_tx	= null_prepare_tx,
 };
 
 static spinlock_t arcnet_lock = SPIN_LOCK_UNLOCKED;
Index: drivers/net/arcnet/rfc1051.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/net/arcnet/rfc1051.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 rfc1051.c
--- drivers/net/arcnet/rfc1051.c	7 Oct 2002 10:21:43 -0000	1.1.1.1
+++ drivers/net/arcnet/rfc1051.c	15 May 2003 18:14:34 -0000
@@ -45,11 +45,11 @@
 
 struct ArcProto rfc1051_proto =
 {
-	's',
-	XMTU - RFC1051_HDR_SIZE,
-	rx,
-	build_header,
-	prepare_tx
+	.suffix		= 's',
+	.mtu		= XMTU - RFC1051_HDR_SIZE,
+	.rx		= rx,
+	.build_header	= build_header,
+	.prepare_tx	= prepare_tx,
 };
 
 
Index: drivers/net/arcnet/rfc1201.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/net/arcnet/rfc1201.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 rfc1201.c
--- drivers/net/arcnet/rfc1201.c	7 Oct 2002 10:21:43 -0000	1.1.1.1
+++ drivers/net/arcnet/rfc1201.c	15 May 2003 18:14:34 -0000
@@ -44,12 +44,12 @@
 
 struct ArcProto rfc1201_proto =
 {
-	'a',
-	1500,			/* could be more, but some receivers can't handle it... */
-	rx,
-	build_header,
-	prepare_tx,
-	continue_tx
+	.suffix		= 'a',
+	.mtu		= 1500,	/* could be more, but some receivers can't handle it... */
+	.rx		= rx,
+	.build_header	= build_header,
+	.prepare_tx	= prepare_tx,
+	.continue_tx	= continue_tx,
 };
 
 

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux