diff -r 76aebe92fd5f -r 4d7ac355701d targets/plc_common_main.c --- 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();