[Olsr-dev] [olsrd] [PATCH v1 02/29] gateway: initialise variables in the declaration order

Ferry Huberts (spam-protected)
Tue Jul 24 18:08:51 CEST 2012


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/gateway_default_handler.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/gateway_default_handler.c b/src/gateway_default_handler.c
index f314a6b..b3aeae9 100644
--- a/src/gateway_default_handler.c
+++ b/src/gateway_default_handler.c
@@ -131,11 +131,10 @@ static void gw_default_timer(void *unused __attribute__ ((unused))) {
  */
 void olsr_gw_default_init(void) {
   /* initialize values */
-  gw_def_timer = NULL;
-  gw_def_finished_ipv4 = false;
-  gw_def_finished_ipv6 = false;
   gw_def_nodecount = 0;
   gw_def_stablecount = 0;
+  gw_def_finished_ipv4 = false;
+  gw_def_finished_ipv6 = false;
   gw_def_timer = NULL;
 
   /* setup default handler */
-- 
1.7.10.4





More information about the Olsr-dev mailing list