diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-06-09 17:13:09 +0200 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-06-09 20:40:38 +0200 |
commit | ecbd532108cb21d9d3770f73e168bad65d14d9eb (patch) | |
tree | 2755df4a468d6d146e20bed8306e8c76c74f1ce9 /net/batman-adv/hard-interface.c | |
parent | e8958dbf0da377e11f385a9888da3f72e827ab26 (diff) | |
download | blackbird-op-linux-ecbd532108cb21d9d3770f73e168bad65d14d9eb.tar.gz blackbird-op-linux-ecbd532108cb21d9d3770f73e168bad65d14d9eb.zip |
batman-adv: use NO_FLAGS define instead of hard-coding 0
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>
Diffstat (limited to 'net/batman-adv/hard-interface.c')
-rw-r--r-- | net/batman-adv/hard-interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index a3fbfb5c92f1..b55e8616fc1e 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c @@ -337,7 +337,7 @@ int hardif_enable_interface(struct hard_iface *hard_iface, batman_packet = (struct batman_packet *)(hard_iface->packet_buff); batman_packet->packet_type = BAT_PACKET; batman_packet->version = COMPAT_VERSION; - batman_packet->flags = 0; + batman_packet->flags = NO_FLAGS; batman_packet->ttl = 2; batman_packet->tq = TQ_MAX_VALUE; batman_packet->num_tt = 0; |