netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trivial C99 designated initializer patch for net/netlink/af_netlink.c
@ 2002-10-07 22:52 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2002-10-07 22:52 UTC (permalink / raw)
  To: netdev, kuznet

Hi.

The trivial patch below fixes a structure to use C99 designated
initializers. The patch is against 2.5.41.

Art Haas

--- linux-2.5.41/net/netlink/af_netlink.c.old	2002-08-10 22:04:03.000000000 -0500
+++ linux-2.5.41/net/netlink/af_netlink.c	2002-10-07 15:51:59.000000000 -0500
@@ -280,8 +280,8 @@
 	skb_queue_purge(&sk->write_queue);
 
 	if (nlk->pid && !nlk->groups) {
-		struct netlink_notify n = { protocol:sk->protocol,
-		                            pid:nlk->pid };
+		struct netlink_notify n = { .protocol = sk->protocol,
+		                            .pid = nlk->pid };
 		notifier_call_chain(&netlink_chain, NETLINK_URELEASE, &n);
 	}	
 	
-- 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-07 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-07 22:52 [PATCH] trivial C99 designated initializer patch for net/netlink/af_netlink.c Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).