From: Antonio Quartulli <ordex@autistici.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: use static const for STP constant address
Date: Sat, 7 Apr 2012 23:06:08 +0200 [thread overview]
Message-ID: <1333832769-28493-3-git-send-email-ordex@autistici.org> (raw)
In-Reply-To: <1333832769-28493-1-git-send-email-ordex@autistici.org>
stp_addr is now declared as a simple "uint8_t []", but since it's content is
statically defined, it has to be declared as "static const uint8_t []"
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
soft-interface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/soft-interface.c b/soft-interface.c
index f8a4a59..b56dafd 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -131,7 +131,8 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
struct hard_iface *primary_if = NULL;
struct bcast_packet *bcast_packet;
struct vlan_ethhdr *vhdr;
- uint8_t stp_addr[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00, 0x00, 0x00};
+ static const uint8_t stp_addr[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00, 0x00,
+ 0x00};
unsigned int header_len = 0;
int data_len = skb->len, ret;
short vid __maybe_unused = -1;
--
1.7.9.4
next prev parent reply other threads:[~2012-04-07 21:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-07 21:06 [B.A.T.M.A.N.] [PATCH 0/3] clean up patches Antonio Quartulli
2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: fix comments ending style Antonio Quartulli
2012-04-08 22:38 ` Simon Wunderlich
2012-04-11 20:52 ` Antonio Quartulli
2012-04-07 21:06 ` Antonio Quartulli [this message]
2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: use static inline functions to fake not compiled-in routines Antonio Quartulli
2012-04-08 22:37 ` [B.A.T.M.A.N.] [PATCH 0/3] clean up patches Simon Wunderlich
2012-04-12 6:50 ` Antonio Quartulli
2012-04-12 6:53 ` Marek Lindner
2012-04-12 7:02 ` Antonio Quartulli
2012-04-12 6:56 ` Sven Eckelmann
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=1333832769-28493-3-git-send-email-ordex@autistici.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/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).