diff --git a/compat/compat.h b/compat/compat.h index 5905e10e..2671b784 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -20,7 +20,7 @@ #else // other platforms -# include +# include #endif diff --git a/readsbrrd.c b/readsbrrd.c index f33e5fa2..9b35323e 100644 --- a/readsbrrd.c +++ b/readsbrrd.c @@ -587,7 +587,7 @@ int main(int argc, char** argv) { // Run this until we get a termination signal. while (!readsbrrd_exit) { clock_gettime(CLOCK_REALTIME, &ts); - ts.tv_sec += (__time_t) (rrd.step * 1.5); + ts.tv_sec += (time_t) rrd.step * 1.5; r = sem_getvalue(stats_semptr, &semcnt); // Avoid frequent updates when more than one event is queued in semaphore. // Update only one very last event.