Repository : ssh://git@open-mesh.org/batctl
On branch : next
commit 2091ab83e9bb3dd4a710566541ce3433f21a8471 Author: Sven Eckelmann sven@narfation.org Date: Tue Sep 10 23:12:00 2013 +0200
batctl: Fix type of new neighbor buffer in _seqno_trace_neigh_add
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
2091ab83e9bb3dd4a710566541ce3433f21a8471 bisect_iv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bisect_iv.c b/bisect_iv.c index 0dbc2ef..c0f9420 100644 --- a/bisect_iv.c +++ b/bisect_iv.c @@ -1040,7 +1040,7 @@ static void seqno_trace_print(struct list_head_first *trace_list, char *trace_or static int _seqno_trace_neigh_add(struct seqno_trace_neigh *seqno_trace_mom, struct seqno_trace_neigh *seqno_trace_child) { - struct seqno_trace_neigh *data_ptr; + struct seqno_trace_neigh **data_ptr;
data_ptr = malloc((seqno_trace_mom->num_neighbors + 1) * sizeof(struct seqno_trace_neigh *)); if (!data_ptr) @@ -1053,7 +1053,7 @@ static int _seqno_trace_neigh_add(struct seqno_trace_neigh *seqno_trace_mom, }
seqno_trace_mom->num_neighbors++; - seqno_trace_mom->seqno_trace_neigh = (void *)data_ptr; + seqno_trace_mom->seqno_trace_neigh = data_ptr; seqno_trace_mom->seqno_trace_neigh[seqno_trace_mom->num_neighbors - 1] = seqno_trace_child; return 1; }