--- a/targets/plc_common_main.c Tue Oct 27 16:32:54 2009 +0100
+++ b/targets/plc_common_main.c Mon Nov 02 15:38:49 2009 +0100
@@ -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();