]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - src_partikle/fosa_clocks_and_timers.c
FOSA-PaRTiKle: some clean up
[frescor/fosa.git] / src_partikle / fosa_clocks_and_timers.c
index dc536e4ab37e16763d343015e77f06512ba55aad..99f795c14626aec9305634e9daf5e3d7ede409ff 100644 (file)
@@ -125,9 +125,10 @@ int fosa_timer_arm
        
        clock_gettime (CLOCK_REALTIME, &now);
        
-//     printf ("(0x%x): Arm timer (%d). abstime=%d, value={%ld,%ld}, now={%ld, %ld}\n",\
-//             pthread_self (), timerid, abstime, value -> tv_sec, value -> tv_nsec, now.tv_sec, now.tv_nsec);
-
+/*     
+       printf ("(0x%x): Arm timer (%d). abstime=%d, value={%ld,%ld}, now={%ld, %ld}\n",\
+               pthread_self (), timerid, abstime, value -> tv_sec, value -> tv_nsec, now.tv_sec, now.tv_nsec);
+*/
        struct itimerspec tvalue =
        {
                .it_value = (struct timespec) *value,
@@ -162,7 +163,7 @@ int fosa_timer_disarm(fosa_timer_id_t timerid, struct timespec
        // NULL timer -> disarm
        null_timer = (struct itimerspec) {
                .it_value = {0, 0},
-               .it_interval = 0,
+               .it_interval = {0, 0},
        };
        
        if (timer_settime (timerid, 0, &null_timer, &old))