batman-adv: avoid characters requiring shell escapes in protocol names

Message ID 1334740557-7848-1-git-send-email-lindner_marek@yahoo.de (mailing list archive)
State Accepted, archived
Commit db014029c8a340a628be7cf47c29dc117a88e857
Headers

Commit Message

Marek Lindner April 18, 2012, 9:15 a.m. UTC
  Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 bat_iv_ogm.c |    2 +-
 main.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Marek Lindner April 22, 2012, 9:06 a.m. UTC | #1
On Wednesday, April 18, 2012 17:15:57 Marek Lindner wrote:
> Reported-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
>  bat_iv_ogm.c |    2 +-
>  main.c       |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied in revision db01402.

Regards,
Marek
  

Patch

diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
index ed743a4..19da9d5 100644
--- a/bat_iv_ogm.c
+++ b/bat_iv_ogm.c
@@ -1233,7 +1233,7 @@  static int bat_iv_ogm_receive(struct sk_buff *skb,
 }
 
 static struct bat_algo_ops batman_iv __read_mostly = {
-	.name = "BATMAN IV",
+	.name = "BATMAN_IV",
 	.bat_iface_enable = bat_iv_ogm_iface_enable,
 	.bat_iface_disable = bat_iv_ogm_iface_disable,
 	.bat_iface_update_mac = bat_iv_ogm_iface_update_mac,
diff --git a/main.c b/main.c
index 0757c2d..1d338a3 100644
--- a/main.c
+++ b/main.c
@@ -40,7 +40,7 @@ 
  * list traversals just rcu-locked */
 struct list_head hardif_list;
 static int (*recv_packet_handler[256])(struct sk_buff *, struct hard_iface *);
-char bat_routing_algo[20] = "BATMAN IV";
+char bat_routing_algo[20] = "BATMAN_IV";
 static struct hlist_head bat_algo_list;
 
 unsigned char broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};