diff options
author | Sven Eckelmann <sven@narfation.org> | 2011-05-14 17:14:50 -0400 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-05-30 01:39:31 -0400 |
commit | 747e4221a03cde62402b614ca1f8e961b8416130 (patch) | |
tree | 98428064fef191a5093e276d5a779b9e801a97f0 /net/batman-adv/originator.c | |
parent | 38e3c5f0dae7a3bbb32c3b2bb28c3f2557d40fe9 (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/originator.c')
-rw-r--r-- | net/batman-adv/originator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index ae54f77f2c1b..3ea997deb112 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c | |||
@@ -77,7 +77,7 @@ struct neigh_node *orig_node_get_router(struct orig_node *orig_node) | |||
77 | 77 | ||
78 | struct neigh_node *create_neighbor(struct orig_node *orig_node, | 78 | struct neigh_node *create_neighbor(struct orig_node *orig_node, |
79 | struct orig_node *orig_neigh_node, | 79 | struct orig_node *orig_neigh_node, |
80 | uint8_t *neigh, | 80 | const uint8_t *neigh, |
81 | struct hard_iface *if_incoming) | 81 | struct hard_iface *if_incoming) |
82 | { | 82 | { |
83 | struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); | 83 | struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); |
@@ -183,7 +183,7 @@ void originator_free(struct bat_priv *bat_priv) | |||
183 | 183 | ||
184 | /* this function finds or creates an originator entry for the given | 184 | /* this function finds or creates an originator entry for the given |
185 | * address if it does not exits */ | 185 | * address if it does not exits */ |
186 | struct orig_node *get_orig_node(struct bat_priv *bat_priv, uint8_t *addr) | 186 | struct orig_node *get_orig_node(struct bat_priv *bat_priv, const uint8_t *addr) |
187 | { | 187 | { |
188 | struct orig_node *orig_node; | 188 | struct orig_node *orig_node; |
189 | int size; | 189 | int size; |