targets/Linux/plc_Linux_main.c
changeset 614 eed1dcf311a1
parent 592 c6408f92da0a
child 617 7c23fac40a2a
--- a/targets/Linux/plc_Linux_main.c	Thu Sep 22 17:00:56 2011 +0200
+++ b/targets/Linux/plc_Linux_main.c	Thu Sep 22 17:33:34 2011 +0200
@@ -10,7 +10,6 @@
 #include <pthread.h>
 #include <locale.h>
 
-/* provided by POUS.C */
 extern unsigned long long common_ticktime__;
 
 long AtomicCompareExchange(long* atomicvar,long compared, long exchange)
@@ -158,7 +157,7 @@
     pthread_mutex_unlock(&debug_wait_mutex);
 }
 
-void suspendDebug(int disable)
+int suspendDebug(int disable)
 {
     /* Prevent PLC to enter debug code */
     pthread_mutex_lock(&debug_mutex);
@@ -166,6 +165,7 @@
     __DEBUG = !disable;
     if (disable)
     	pthread_mutex_unlock(&debug_mutex);
+    return 0;
 }
 
 void resumeDebug(void)