diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2014-12-26 12:41:28 +0100 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-05-29 10:13:36 +0200 |
commit | de12baece9b8010d036b4104a9f08d21418b60e8 (patch) | |
tree | 6be755f80d1d52125b3f0700a13596f08008b30c /net/batman-adv | |
parent | 9fd9b19ea03cce2e47544a3b8e0b532485b34758 (diff) | |
download | op-kernel-dev-de12baece9b8010d036b4104a9f08d21418b60e8.zip op-kernel-dev-de12baece9b8010d036b4104a9f08d21418b60e8.tar.gz |
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>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 0015138..f9c56109 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/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; |