| To: | netdev@xxxxxxxxxxx, kuznet@xxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] trivial C99 designated initializer patch for net/netlink/af_netlink.c |
| From: | Art Haas <ahaas@xxxxxxxxxxx> |
| Date: | Mon, 7 Oct 2002 17:52:00 -0500 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4i |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Continuing problems with sundance driver, Richard Gooch |
|---|---|
| Next by Date: | Re: [PATCH] IPv6: Fix Prefix Length of Link-local Addresses, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | [PATCH] C99 designated initializer for net/atm/lec.c, Art Haas |
| Next by Thread: | [PATCH] trivial C99 designated initializer fix for net/sctp/sm_statetable.c, Art Haas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |