Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 3de1d1b9d1ee4f5fea77995d1bf217fd3a55d2ae Author: Markus Pargmann mpa@pengutronix.de Date: Fri Dec 26 12:41:28 2014 +0100
batman-adv: iv_ogm_send_to_if, declare char* as const
This string pointer is later assigned to a constant string, so it should be defined constant at the beginning.
Signed-off-by: Markus Pargmann mpa@pengutronix.de Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
3de1d1b9d1ee4f5fea77995d1bf217fd3a55d2ae bat_iv_ogm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c index 5cd0e47..bbcdbb4 100644 --- a/bat_iv_ogm.c +++ b/bat_iv_ogm.c @@ -409,7 +409,7 @@ static void batadv_iv_ogm_send_to_if(struct batadv_forw_packet *forw_packet, struct batadv_hard_iface *hard_iface) { struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); - char *fwd_str; + const char *fwd_str; uint8_t packet_num; int16_t buff_pos; struct batadv_ogm_packet *batadv_ogm_packet;