aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-05-14 17:14:50 -0400
committerSven Eckelmann <sven@narfation.org>2011-05-30 01:39:31 -0400
commit747e4221a03cde62402b614ca1f8e961b8416130 (patch)
tree98428064fef191a5093e276d5a779b9e801a97f0 /net/batman-adv/hard-interface.h
parent38e3c5f0dae7a3bbb32c3b2bb28c3f2557d40fe9 (diff)
batman-adv: Add const type qualifier for pointers
batman-adv uses pointers which are marked as const and should not violate that type qualifier by passing it to functions which force a cast to the non-const version. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r--net/batman-adv/hard-interface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h
index 64265991460..79e25cbb800 100644
--- a/net/batman-adv/hard-interface.h
+++ b/net/batman-adv/hard-interface.h
@@ -31,8 +31,10 @@
31 31
32extern struct notifier_block hard_if_notifier; 32extern struct notifier_block hard_if_notifier;
33 33
34struct hard_iface *hardif_get_by_netdev(struct net_device *net_dev); 34struct hard_iface*
35int hardif_enable_interface(struct hard_iface *hard_iface, char *iface_name); 35hardif_get_by_netdev(const struct net_device *net_dev);
36int hardif_enable_interface(struct hard_iface *hard_iface,
37 const char *iface_name);
36void hardif_disable_interface(struct hard_iface *hard_iface); 38void hardif_disable_interface(struct hard_iface *hard_iface);
37void hardif_remove_interfaces(void); 39void hardif_remove_interfaces(void);
38int hardif_min_mtu(struct net_device *soft_iface); 40int hardif_min_mtu(struct net_device *soft_iface);