Pārlūkot izejas kodu

- sync function definitions with declarations for functions w/o parameters
- this functions were declared as 'f()', that means they can have a
arbitrary number of arguments (because of compatibility to the old style
definitions in the C standard), even if they are defined as f(void)
- there is no warning reported if somebody call a function like this with
some parameters
- another potential problem is, when somebody change the definition to
accept some parameter, but forgot to change also the declaration. Then
the compiler will not report wrong usage of this functions too.
- sometimes ago the '-Wold-style-definition' warning was introduced, the
definitions get then fixed subsequently, but not all declarations


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5003 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 17 gadi atpakaļ
vecāks
revīzija
5d175848b4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/carrierroute/carrier_tree.h

+ 1 - 1
modules/carrierroute/carrier_tree.h

@@ -194,7 +194,7 @@ struct carrier_tree * get_carrier_tree(int carrier_id, struct rewrite_data * rd)
 /**
 /**
  * Frees the routing data
  * Frees the routing data
  */
  */
-void destroy_route_data();
+void destroy_route_data(void);
 
 
 /**
 /**
  * Destroys the complete routing tree data.
  * Destroys the complete routing tree data.