netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Art Haas <ahaas@neosoft.com>
To: netdev@oss.sgi.com, kuznet@ms2.inr.ac.ru
Subject: [PATCH] trivial C99 designated initializer patch for net/netlink/af_netlink.c
Date: Mon, 7 Oct 2002 17:52:00 -0500	[thread overview]
Message-ID: <20021007225200.GP9856@debian> (raw)

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

                 reply	other threads:[~2002-10-07 22:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021007225200.GP9856@debian \
    --to=ahaas@neosoft.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).