batman-adv: use NO_FLAGS define instead of hard-coding 0
authorMarek Lindner <lindner_marek@yahoo.de>
Thu, 9 Jun 2011 15:13:09 +0000 (17:13 +0200)
committerSven Eckelmann <sven@narfation.org>
Thu, 9 Jun 2011 18:40:38 +0000 (20:40 +0200)
The definition NO_FLAGS was introduced to make the code more
readable and shall be used to initialize flag fields.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/aggregation.c
net/batman-adv/gateway_client.c
net/batman-adv/hard-interface.c
net/batman-adv/main.h
net/batman-adv/send.c

index b41f25b..4080970 100644 (file)
@@ -151,7 +151,7 @@ static void new_aggregated_packet(const unsigned char *packet_buff,
        forw_packet_aggr->own = own_packet;
        forw_packet_aggr->if_incoming = if_incoming;
        forw_packet_aggr->num_packets = 0;
-       forw_packet_aggr->direct_link_flags = 0;
+       forw_packet_aggr->direct_link_flags = NO_FLAGS;
        forw_packet_aggr->send_time = send_time;
 
        /* save packet direct link flag status */
Simple merge
Simple merge
Simple merge
Simple merge