targets/plc_common_main.c
changeset 423 4d7ac355701d
parent 397 6a7ff66a811d
child 446 1edde533db19
--- a/targets/plc_common_main.c	Mon Oct 19 16:26:15 2009 +0200
+++ b/targets/plc_common_main.c	Thu Oct 22 11:26:45 2009 +0200
@@ -41,7 +41,7 @@
 /*
  * Retrieve input variables, run PLC and publish output variables
  **/
-void __run()
+void __run(void)
 {
     __tick++;
     if (greatest_tick_count__)
@@ -66,6 +66,7 @@
 int __init(int argc,char **argv)
 {
     int res = 0;
+    init_level = 0;
     setlocale(LC_NUMERIC, "C");
     config_init__();
     __init_debug();
@@ -75,7 +76,7 @@
 /*
  * Calls plugin cleanup proc.
  **/
-void __cleanup()
+void __cleanup(void)
 {
     %(cleanup_calls)s
     __cleanup_debug();