The following commit has been merged in the master branch: commit 17ee27713c0a81d1583293cc55432dda2b6791d7 Author: Marek Lindner lindner_marek@yahoo.de Date: Tue Feb 6 11:45:16 2007 +0100
code is clean now ;-)
diff --git a/batman.c b/batman.c index 11f3f04..fe8ac35 100644 --- a/batman.c +++ b/batman.c @@ -404,8 +404,7 @@ static void update_routes( struct orig_node *orig_node, struct neigh_node *neigh orig_node->hna_buff = debugMalloc( hna_buff_len, 3 ); orig_node->hna_buff_len = hna_buff_len;
- if ( ( orig_node->hna_buff_len == 0 ) || ( memcmp( orig_node->hna_buff, hna_recv_buff, hna_buff_len ) != 0 ) ) - memmove( orig_node->hna_buff, hna_recv_buff, hna_buff_len ); + memmove( orig_node->hna_buff, hna_recv_buff, hna_buff_len );
add_del_hna( orig_node, 0 );