projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fd9b19
)
batman-adv: iv_ogm_send_to_if, declare char* as const
author
Markus Pargmann
<mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:28 +0000
(12:41 +0100)
committer
Antonio Quartulli
<antonio@meshcoding.com>
Fri, 29 May 2015 08:13:36 +0000
(10:13 +0200)
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>
net/batman-adv/bat_iv_ogm.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/bat_iv_ogm.c
b/net/batman-adv/bat_iv_ogm.c
index 00151385ad116397b416ff32831e2bd36cfa9583..f9c5610949425fed6c9d2acc0c328dfb9b34a781 100644
(file)
--- 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;
+ c
onst c
har *fwd_str;
uint8_t packet_num;
int16_t buff_pos;
struct batadv_ogm_packet *batadv_ogm_packet;