added debug statements, dynamic allocation is working for tasks
[mTask.git] / client / linux / interface.c
index 971fb0f..520873f 100644 (file)
@@ -33,7 +33,7 @@ void usage(FILE *o, char *arg0){
                "-p PORT  Custom port number, default: 8123\n" , arg0);
 }
 
-long getmillis(void) {
+unsigned long getmillis(void) {
        if (gettimeofday(&tv1, NULL) == -1)
                pdie("gettimeofday");
        return tv1.tv_sec*1000 + tv1.tv_usec/1000;
@@ -92,7 +92,7 @@ uint8_t read_apin(uint8_t i)
        (void) i;
 }
 
-void msdelay(long ms)
+void msdelay(unsigned long ms)
 {
        usleep(ms*1000);
 }
@@ -109,7 +109,7 @@ void led_off(uint8_t i)
        (void)i;
 }
 
-void setup(void)
+void real_setup(void)
 {
        int port = 8123, opti = 1;
        //Register signal handler