* [B.A.T.M.A.N.] [PATCH] batman-adv: Split combined variable declarations
@ 2011-02-08 0:27 Sven Eckelmann
2011-02-08 12:41 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Sven Eckelmann @ 2011-02-08 0:27 UTC (permalink / raw)
To: b.a.t.m.a.n
Multiple variable declarations in a single statements over multiple lines can
be split into multiple variable declarations without changing the actual
behavior.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
batman-adv/unicast.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/batman-adv/unicast.c b/batman-adv/unicast.c
index 52b52e3..db62b66 100644
--- a/batman-adv/unicast.c
+++ b/batman-adv/unicast.c
@@ -39,8 +39,8 @@ static struct sk_buff *frag_merge_packet(struct list_head *head,
(struct unicast_frag_packet *)skb->data;
struct sk_buff *tmp_skb;
struct unicast_packet *unicast_packet;
- int hdr_len = sizeof(struct unicast_packet),
- uni_diff = sizeof(struct unicast_frag_packet) - hdr_len;
+ int hdr_len = sizeof(struct unicast_packet);
+ int uni_diff = sizeof(struct unicast_frag_packet) - hdr_len;
/* set skb to the first part and tmp_skb to the second part */
if (up->flags & UNI_FRAG_HEAD) {
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Split combined variable declarations
2011-02-08 0:27 [B.A.T.M.A.N.] [PATCH] batman-adv: Split combined variable declarations Sven Eckelmann
@ 2011-02-08 12:41 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-02-08 12:41 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Tuesday 08 February 2011 01:27:00 Sven Eckelmann wrote:
> Multiple variable declarations in a single statements over multiple lines
> can be split into multiple variable declarations without changing the
> actual behavior.
Applied in revision 1935.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-08 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-08 0:27 [B.A.T.M.A.N.] [PATCH] batman-adv: Split combined variable declarations Sven Eckelmann
2011-02-08 12:41 ` Marek Lindner
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).